diff src/cmdexpand.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 0a5c615cd949
children baf890fa1621
line wrap: on
line diff
--- 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;