commit | 4a7d2d3b407ed695450bb7f43166e2f2722a6836 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Feb 21 16:25:50 2019 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Feb 21 16:25:50 2019 +0100 |
tree | f30c8ace53a50dc9328f09f2f56b403641d9e3c3 | |
parent | d91e5dafd5ec57d8e61f1a6ba3628a255785c25c [diff] [blame] |
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)
diff --git a/src/misc1.c b/src/misc1.c index 75f4ab1..65d5e9e 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -2854,6 +2854,11 @@ changed_int(); } ++CHANGEDTICK(curbuf); + +#ifdef FEAT_SEARCH_EXTRA + // If a pattern is highlighted, the position may now be invalid. + highlight_match = FALSE; +#endif } /*