mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
vim-patch:8.1.0273: invalid memory access when using 'incsearch'
Problem: Invalid memory access when using 'incsearch'.
Solution: Reset "patlen" when using previous search pattern.
ef73a28401
This commit is contained in:
@@ -1348,6 +1348,8 @@ static int may_do_command_line_next_incsearch(int firstc, long count,
|
|||||||
|
|
||||||
if (firstc == ccline.cmdbuff[skiplen]) {
|
if (firstc == ccline.cmdbuff[skiplen]) {
|
||||||
pat = last_search_pattern();
|
pat = last_search_pattern();
|
||||||
|
skiplen = 0;
|
||||||
|
patlen = (int)STRLEN(pat);
|
||||||
} else {
|
} else {
|
||||||
pat = ccline.cmdbuff + skiplen;
|
pat = ccline.cmdbuff + skiplen;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user