Mercurial > vim
diff src/fileio.c @ 13752:8a3e9d1e8cf9 v8.0.1748
patch 8.0.1748: CmdlineEnter command uses backslash instead of slash
commit https://github.com/vim/vim/commit/a4baf5b32519855bb176a7aa0e9397c137ca890a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 22 13:27:44 2018 +0200
patch 8.0.1748: CmdlineEnter command uses backslash instead of slash
Problem: CmdlineEnter command uses backslash instead of slash.
Solution: Don't treat the character as a file name. (closes https://github.com/vim/vim/issues/2837)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 22 Apr 2018 13:30:08 +0200 |
parents | 7b818f7bb738 |
children | 9de2b25932eb |
line wrap: on
line diff
--- 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); }