forked from aniani/vim
patch 8.1.0963: illegal memory access when using 'incsearch'
Problem: Illegal memory access when using 'incsearch'. Solution: Reset highlight_match when changing text. (closes #4022)
This commit is contained in:
@@ -2854,6 +2854,11 @@ changed(void)
|
||||
changed_int();
|
||||
}
|
||||
++CHANGEDTICK(curbuf);
|
||||
|
||||
#ifdef FEAT_SEARCH_EXTRA
|
||||
// If a pattern is highlighted, the position may now be invalid.
|
||||
highlight_match = FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user