summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-21 16:25:50 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-21 16:25:50 +0100
commit4a7d2d3b407ed695450bb7f43166e2f2722a6836 (patch)
treef30c8ace53a50dc9328f09f2f56b403641d9e3c3 /src/misc1.c
parentd91e5dafd5ec57d8e61f1a6ba3628a255785c25c (diff)
downloadvim-git-4a7d2d3b407ed695450bb7f43166e2f2722a6836.tar.gz
patch 8.1.0963: illegal memory access when using 'incsearch'v8.1.0963
Problem: Illegal memory access when using 'incsearch'. Solution: Reset highlight_match when changing text. (closes #4022)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 75f4ab1ef..65d5e9ec5 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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
}
/*