mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.4.109
Problem: ColorScheme autocommand matches with the current buffer name. Solution: Match with the colorscheme name. (Christian Brabandt)
This commit is contained in:
@@ -480,6 +480,12 @@ CmdwinLeave Before leaving the command-line window.
|
|||||||
|cmdwin-char|
|
|cmdwin-char|
|
||||||
*ColorScheme*
|
*ColorScheme*
|
||||||
ColorScheme After loading a color scheme. |:colorscheme|
|
ColorScheme After loading a color scheme. |:colorscheme|
|
||||||
|
The pattern is matched against the
|
||||||
|
colorscheme name. <afile> can be used for the
|
||||||
|
name of the actual file where this option was
|
||||||
|
set, and <amatch> for the new colorscheme
|
||||||
|
name.
|
||||||
|
|
||||||
|
|
||||||
*CompleteDone*
|
*CompleteDone*
|
||||||
CompleteDone After Insert mode completion is done. Either
|
CompleteDone After Insert mode completion is done. Either
|
||||||
|
@@ -9330,7 +9330,9 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap)
|
|||||||
*/
|
*/
|
||||||
if (fname_io == NULL)
|
if (fname_io == NULL)
|
||||||
{
|
{
|
||||||
if (fname != NULL && *fname != NUL)
|
if (event == EVENT_COLORSCHEME)
|
||||||
|
autocmd_fname = NULL;
|
||||||
|
else if (fname != NULL && *fname != NUL)
|
||||||
autocmd_fname = fname;
|
autocmd_fname = fname;
|
||||||
else if (buf != NULL)
|
else if (buf != NULL)
|
||||||
autocmd_fname = buf->b_ffname;
|
autocmd_fname = buf->b_ffname;
|
||||||
@@ -9383,14 +9385,15 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
sfname = vim_strsave(fname);
|
sfname = vim_strsave(fname);
|
||||||
/* Don't try expanding FileType, Syntax, FuncUndefined, WindowID or
|
/* Don't try expanding FileType, Syntax, FuncUndefined, WindowID,
|
||||||
* QuickFixCmd* */
|
* ColorScheme or QuickFixCmd* */
|
||||||
if (event == EVENT_FILETYPE
|
if (event == EVENT_FILETYPE
|
||||||
|| event == EVENT_SYNTAX
|
|| event == EVENT_SYNTAX
|
||||||
|| event == EVENT_FUNCUNDEFINED
|
|| event == EVENT_FUNCUNDEFINED
|
||||||
|| event == EVENT_REMOTEREPLY
|
|| event == EVENT_REMOTEREPLY
|
||||||
|| event == EVENT_SPELLFILEMISSING
|
|| event == EVENT_SPELLFILEMISSING
|
||||||
|| event == EVENT_QUICKFIXCMDPRE
|
|| event == EVENT_QUICKFIXCMDPRE
|
||||||
|
|| event == EVENT_COLORSCHEME
|
||||||
|| event == EVENT_QUICKFIXCMDPOST)
|
|| event == EVENT_QUICKFIXCMDPOST)
|
||||||
fname = vim_strsave(fname);
|
fname = vim_strsave(fname);
|
||||||
else
|
else
|
||||||
|
@@ -7071,7 +7071,7 @@ load_colors(name)
|
|||||||
retval = source_runtime(buf, FALSE);
|
retval = source_runtime(buf, FALSE);
|
||||||
vim_free(buf);
|
vim_free(buf);
|
||||||
#ifdef FEAT_AUTOCMD
|
#ifdef FEAT_AUTOCMD
|
||||||
apply_autocmds(EVENT_COLORSCHEME, NULL, NULL, FALSE, curbuf);
|
apply_autocmds(EVENT_COLORSCHEME, name, curbuf->b_fname, FALSE, curbuf);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
recursive = FALSE;
|
recursive = FALSE;
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
109,
|
||||||
/**/
|
/**/
|
||||||
108,
|
108,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user