1
0
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:
Bram Moolenaar
2019-02-21 16:25:50 +01:00
parent d91e5dafd5
commit 4a7d2d3b40
4 changed files with 40 additions and 0 deletions

View File

@@ -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
}
/*