mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user