diff src/syntax.c @ 5521:1cdf51706774 v7.4.109

updated for version 7.4.109 Problem: ColorScheme autocommand matches with the current buffer name. Solution: Match with the colorscheme name. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 28 Nov 2013 18:53:52 +0100
parents 66803af09906
children 50dbef5e774a
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -7071,7 +7071,7 @@ load_colors(name)
 	retval = source_runtime(buf, FALSE);
 	vim_free(buf);
 #ifdef FEAT_AUTOCMD
-	apply_autocmds(EVENT_COLORSCHEME, NULL, NULL, FALSE, curbuf);
+	apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, FALSE, curbuf);
 #endif
     }
     recursive = FALSE;