0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-10-19 20:57:28 +02:00
parent bbfd1562ae
commit 7eed964b41
2 changed files with 3 additions and 1 deletions

View File

@@ -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