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)
4a7d2d3b40
This commit is contained in:
Justin M. Keyes
2019-02-28 12:13:33 +01:00
parent b183534c81
commit 1a0ee090ab
2 changed files with 27 additions and 0 deletions

View File

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