Mercurial > vim
comparison src/ex_docmd.c @ 18386:105c6cf8b266 v8.1.2187
patch 8.1.2187: error for bad regexp even though regexp is not used
Commit: https://github.com/vim/vim/commit/b40c2576d4e0e2dd2c580414c45947d88556d76d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 19 21:01:05 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Oct 2019 21:15:04 +0200 |
parents | 34d5cd432cac |
children | 527b7084c556 |
comparison
equal
deleted
inserted
replaced
18385:1480cf360326 | 18386:105c6cf8b266 |
---|---|
4209 p = NULL; | 4209 p = NULL; |
4210 } | 4210 } |
4211 else /* n == 2 */ | 4211 else /* n == 2 */ |
4212 { | 4212 { |
4213 expand_T xpc; | 4213 expand_T xpc; |
4214 int options = WILD_LIST_NOTFOUND|WILD_ADD_SLASH; | 4214 int options = WILD_LIST_NOTFOUND |
4215 | WILD_NOERROR | WILD_ADD_SLASH; | |
4215 | 4216 |
4216 ExpandInit(&xpc); | 4217 ExpandInit(&xpc); |
4217 xpc.xp_context = EXPAND_FILES; | 4218 xpc.xp_context = EXPAND_FILES; |
4218 if (p_wic) | 4219 if (p_wic) |
4219 options += WILD_ICASE; | 4220 options += WILD_ICASE; |