0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.2187: error for bad regexp even though regexp is not used

Problem:    Error for bad regexp even though regexp is not used when writing
            a file. (Arseny Nasokin)
Solution:   Ignore regexp errors. (closes #5059)
This commit is contained in:
Bram Moolenaar
2019-10-19 21:01:05 +02:00
parent 7eed964b41
commit b40c2576d4
4 changed files with 12 additions and 2 deletions

View File

@@ -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;