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:
@@ -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
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user