0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.4.090

Problem:    Win32: When a directory name contains an exclamation mark,
            completion doesn't complete the contents of the directory.
Solution:   Escape the exclamation mark. (Jan Stocker)
This commit is contained in:
Bram Moolenaar
2013-11-12 05:28:26 +01:00
parent 0671de335f
commit 8f5610df73
10 changed files with 27 additions and 9 deletions

View File

@@ -3852,9 +3852,9 @@ vim_strsave_fnameescape(fname, shell)
char_u buf[20];
int j = 0;
/* Don't escape '[' and '{' if they are in 'isfname'. */
/* Don't escape '[', '{' and '!' if they are in 'isfname'. */
for (p = PATH_ESC_CHARS; *p != NUL; ++p)
if ((*p != '[' && *p != '{') || !vim_isfilec(*p))
if ((*p != '[' && *p != '{' && *p != '!') || !vim_isfilec(*p))
buf[j++] = *p;
buf[j] = NUL;
p = vim_strsave_escaped(fname, buf);