summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-19 21:01:05 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-19 21:01:05 +0200
commitb40c2576d4e0e2dd2c580414c45947d88556d76d (patch)
treee6395518788a7f64a912bfd63b8eb8476ca195c0 /src/cmdexpand.c
parent7eed964b4196b0bfc6cf09dc449f0b9650b2d31e (diff)
patch 8.1.2187: error for bad regexp even though regexp is not usedv8.1.2187
Problem: Error for bad regexp even though regexp is not used when writing a file. (Arseny Nasokin) Solution: Ignore regexp errors. (closes #5059)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index b3f18c6dec..7381b0e9b7 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -1976,6 +1976,8 @@ ExpandFromContext(
flags |= EW_KEEPALL;
if (options & WILD_SILENT)
flags |= EW_SILENT;
+ if (options & WILD_NOERROR)
+ flags |= EW_NOERROR;
if (options & WILD_ALLLINKS)
flags |= EW_ALLLINKS;