forked from aniani/vim
updated for version 7.0-187
This commit is contained in:
@@ -2811,6 +2811,17 @@ do_source(fname, check_other, is_vimrc)
|
||||
}
|
||||
|
||||
#ifdef FEAT_AUTOCMD
|
||||
/* Apply SourceCmd autocommands, they should get the file and source it. */
|
||||
if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)
|
||||
&& apply_autocmds(EVENT_SOURCECMD, fname_exp, fname_exp,
|
||||
FALSE, curbuf))
|
||||
# ifdef FEAT_EVAL
|
||||
return aborting() ? FAIL : OK;
|
||||
# else
|
||||
return OK;
|
||||
# endif
|
||||
|
||||
/* Apply SourcePre autocommands, they may get the file. */
|
||||
apply_autocmds(EVENT_SOURCEPRE, fname_exp, fname_exp, FALSE, curbuf);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -7019,6 +7019,7 @@ static struct event_name
|
||||
{"ShellCmdPost", EVENT_SHELLCMDPOST},
|
||||
{"ShellFilterPost", EVENT_SHELLFILTERPOST},
|
||||
{"SourcePre", EVENT_SOURCEPRE},
|
||||
{"SourceCmd", EVENT_SOURCECMD},
|
||||
{"SpellFileMissing",EVENT_SPELLFILEMISSING},
|
||||
{"StdinReadPost", EVENT_STDINREADPOST},
|
||||
{"StdinReadPre", EVENT_STDINREADPRE},
|
||||
|
||||
@@ -666,6 +666,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
187,
|
||||
/**/
|
||||
186,
|
||||
/**/
|
||||
|
||||
@@ -1102,7 +1102,7 @@ enum auto_event
|
||||
EVENT_COLORSCHEME, /* after loading a colorscheme */
|
||||
EVENT_FILEAPPENDPOST, /* after appending to a file */
|
||||
EVENT_FILEAPPENDPRE, /* before appending to a file */
|
||||
EVENT_FILEAPPENDCMD, /* appende to a file using command */
|
||||
EVENT_FILEAPPENDCMD, /* append to a file using command */
|
||||
EVENT_FILECHANGEDSHELL, /* after shell command that changed file */
|
||||
EVENT_FILECHANGEDSHELLPOST, /* after (not) reloading changed file */
|
||||
EVENT_FILECHANGEDRO, /* before first change to read-only file */
|
||||
@@ -1147,6 +1147,7 @@ enum auto_event
|
||||
EVENT_REMOTEREPLY, /* upon string reception from a remote vim */
|
||||
EVENT_SWAPEXISTS, /* found existing swap file */
|
||||
EVENT_SOURCEPRE, /* before sourcing a Vim script */
|
||||
EVENT_SOURCECMD, /* sourcing a Vim script using command */
|
||||
EVENT_SPELLFILEMISSING, /* spell file missing */
|
||||
EVENT_CURSORMOVED, /* cursor was moved */
|
||||
EVENT_CURSORMOVEDI, /* cursor was moved in Insert mode */
|
||||
|
||||
Reference in New Issue
Block a user