# HG changeset patch # User Bram Moolenaar # Date 1571511603 -7200 # Node ID 63dd78ea661098da25e6d21fe7ee46178769c0c0 # Parent 5b2587ee4f2372e80362c19ef83efe6fc6e1750d patch 8.1.2186: error for bad regexp even though regexp is not used Commit: https://github.com/vim/vim/commit/7eed964b4196b0bfc6cf09dc449f0b9650b2d31e Author: Bram Moolenaar Date: Sat Oct 19 20:57:28 2019 +0200 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 --- 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)) { +#ifdef FEAT_EVAL vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx)); -#ifdef FEAT_EVAL 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 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2186, +/**/ 2185, /**/ 2184,