diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-22 13:27:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-22 13:27:44 +0200 |
commit | a4baf5b32519855bb176a7aa0e9397c137ca890a (patch) | |
tree | e72b38710ff3986b37f2adbcfd520ae060ab0d7a /src/fileio.c | |
parent | ebe74b73677b06db7d483987a863b41cee051cc0 (diff) |
patch 8.0.1748: CmdlineEnter command uses backslash instead of slashv8.0.1748
Problem: CmdlineEnter command uses backslash instead of slash.
Solution: Don't treat the character as a file name. (closes #2837)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index f02925bed5..700bd3ea53 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -9524,6 +9524,12 @@ apply_autocmds_group( * ColorScheme, QuickFixCmd* or DirChanged */ if (event == EVENT_FILETYPE || event == EVENT_SYNTAX + || event == EVENT_CMDLINECHANGED + || event == EVENT_CMDLINEENTER + || event == EVENT_CMDLINELEAVE + || event == EVENT_CMDWINENTER + || event == EVENT_CMDWINLEAVE + || event == EVENT_CMDUNDEFINED || event == EVENT_FUNCUNDEFINED || event == EVENT_REMOTEREPLY || event == EVENT_SPELLFILEMISSING @@ -9532,7 +9538,10 @@ apply_autocmds_group( || event == EVENT_OPTIONSET || event == EVENT_QUICKFIXCMDPOST || event == EVENT_DIRCHANGED) + { fname = vim_strsave(fname); + autocmd_fname_full = TRUE; /* don't expand it later */ + } else fname = FullName_save(fname, FALSE); } |