diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-19 21:01:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-19 21:01:05 +0200 |
commit | b40c2576d4e0e2dd2c580414c45947d88556d76d (patch) | |
tree | e6395518788a7f64a912bfd63b8eb8476ca195c0 /src/cmdexpand.c | |
parent | 7eed964b4196b0bfc6cf09dc449f0b9650b2d31e (diff) | |
download | vim-git-b40c2576d4e0e2dd2c580414c45947d88556d76d.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index b3f18c6de..7381b0e9b 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; |