Skip to content

Commit 7eed964

Browse files
committed
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)
1 parent bbfd156 commit 7eed964

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/option.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5812,8 +5812,8 @@ buf_copy_options(buf_T *buf, int flags)
58125812

58135813
if (should_copy || (flags & BCO_ALWAYS))
58145814
{
5815-
vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx));
58165815
#ifdef FEAT_EVAL
5816+
vim_memset(buf->b_p_script_ctx, 0, sizeof(buf->b_p_script_ctx));
58175817
init_buf_opt_idx();
58185818
#endif
58195819
// Don't copy the options specific to a help buffer when

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2186,
744746
/**/
745747
2185,
746748
/**/

0 commit comments

Comments
 (0)