diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-12 21:33:51 -0500 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-16 07:49:44 -0500 |
| commit | 986eafce4708c8f49552d7dcd0cc5fe471caa655 (patch) | |
| tree | fd338dbbc51730bfdc29029708e71028800a1653 /src/nvim/ex_getln.c | |
| parent | 5e38516a462cf346e3379f68f4581afa22a9314c (diff) | |
| download | rneovim-986eafce4708c8f49552d7dcd0cc5fe471caa655.tar.gz rneovim-986eafce4708c8f49552d7dcd0cc5fe471caa655.tar.bz2 rneovim-986eafce4708c8f49552d7dcd0cc5fe471caa655.zip | |
vim-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 vim/vim#5059)
https://github.com/vim/vim/commit/b40c2576d4e0e2dd2c580414c45947d88556d76d
Diffstat (limited to 'src/nvim/ex_getln.c')
| -rw-r--r-- | src/nvim/ex_getln.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index f6833874ea..1c3c212aef 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -4693,6 +4693,9 @@ 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; } |