From 1a0ee090ab09e859d84b5057d3b2b4ad91cf9baf Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 28 Feb 2019 12:13:33 +0100 Subject: 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 vim/vim#4022) https://github.com/vim/vim/commit/4a7d2d3b407ed695450bb7f43166e2f2722a6836 --- src/nvim/misc1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/misc1.c') diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index e752910a4b..a8cfc2d700 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -1819,6 +1819,9 @@ void changed(void) changed_int(); } buf_inc_changedtick(curbuf); + + // If a pattern is highlighted, the position may now be invalid. + highlight_match = false; } /* -- cgit