Mercurial > vim
changeset 18384:63dd78ea6610 v8.1.2186
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 <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Oct 2019 21:00:03 +0200 |
parents | 5b2587ee4f23 |
children | 1480cf360326 |
files | src/option.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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