forked from aniani/vim
updated for version 7.3.255
Problem: When editing a file such as "File[2010-08-15].vim" an E16 error is given. (Manuel Stol) Solution: Don't give an error for failing to compile the regexp.
This commit is contained in:
@@ -9043,8 +9043,12 @@ dos_expandpath(
|
||||
}
|
||||
|
||||
/* compile the regexp into a program */
|
||||
if (flags & EW_NOERROR)
|
||||
++emsg_silent;
|
||||
regmatch.rm_ic = TRUE; /* Always ignore case */
|
||||
regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
|
||||
if (flags & EW_NOERROR)
|
||||
--emsg_silent;
|
||||
vim_free(pat);
|
||||
|
||||
if (regmatch.regprog == NULL)
|
||||
|
Reference in New Issue
Block a user