From: Bram Moolenaar Date: Sat, 19 Oct 2019 18:57:28 +0000 (+0200) Subject: patch 8.1.2186: error for bad regexp even though regexp is not used X-Git-Tag: v8.1.2186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7eed964b4196b0bfc6cf09dc449f0b9650b2d31e;p=vim patch 8.1.2186: 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) --- diff --git a/src/option.c b/src/option.c index 31bf8760b..3314a3c4b 100644 --- a/src/option.c +++ b/src/option.c @@ -5812,8 +5812,8 @@ buf_copy_options(buf_T *buf, int flags) if (should_copy || (flags & BCO_ALWAYS)) { - vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx)); #ifdef FEAT_EVAL + vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx)); init_buf_opt_idx(); #endif // Don't copy the options specific to a help buffer when diff --git a/src/version.c b/src/version.c index dd957cd39..65979b253 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2186, /**/ 2185, /**/