mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
vim-patch:8.2.2465: using freed memory in :psearch
Problem: Using freed memory in :psearch. (houyunsong)
Solution: Check the current window is still valid. Fix flaky test.
92bb83e41c
Test_cursorhold_insert timer's 100ms delay was already LoadAdjusted, but change
to 200ms (still LoadAdjust) to match Vim anyway.
This commit is contained in:
@@ -5248,6 +5248,9 @@ search_line:
|
||||
if (depth == -1) {
|
||||
// match in current file
|
||||
if (l_g_do_tagpreview != 0) {
|
||||
if (!win_valid(curwin_save)) {
|
||||
break;
|
||||
}
|
||||
if (!GETFILE_SUCCESS(getfile(curwin_save->w_buffer->b_fnum, NULL,
|
||||
NULL, true, lnum, false))) {
|
||||
break; // failed to jump to file
|
||||
|
Reference in New Issue
Block a user