diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-19 20:57:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-19 20:57:28 +0200 |
commit | 7eed964b4196b0bfc6cf09dc449f0b9650b2d31e (patch) | |
tree | 7a053233bb38d174823ff3bcb0d065af4f29420c /src/option.c | |
parent | bbfd1562aeaa5b40b6451effc399846b692d6992 (diff) | |
download | vim-git-7eed964b4196b0bfc6cf09dc449f0b9650b2d31e.tar.gz |
patch 8.1.2186: error for bad regexp even though regexp is not usedv8.1.2186
Problem: Error for bad regexp even though regexp is not used, when writing
a file. (Arseny Nasokin)
Solution: Ignore regexp errors. (closes #5059)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |