summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-07-20 15:04:58 +0200
committerBram Moolenaar <Bram@vim.org>2011-07-20 15:04:58 +0200
commitb560983d2f610f7098b6977b2e8fec0554a41ad1 (patch)
tree78585ff3c5ec188fd49143030834709df5e49a57 /src/misc1.c
parent9729301aa0b6a419dcd87fe9aeed72c367ae72ef (diff)
downloadvim-git-b560983d2f610f7098b6977b2e8fec0554a41ad1.tar.gz
updated for version 7.3.255v7.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.
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index c7f2f8059..a573b3b99 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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)