0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -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)) if (should_copy || (flags & BCO_ALWAYS))
{ {
vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx));
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx));
init_buf_opt_idx(); init_buf_opt_idx();
#endif #endif
// Don't copy the options specific to a help buffer when // Don't copy the options specific to a help buffer when

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2186,
/**/ /**/
2185, 2185,
/**/ /**/