1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2021-02-03 23:04:46 +01:00
parent 8ab375706e
commit 92bb83e41c
3 changed files with 29 additions and 3 deletions

View File

@@ -3864,6 +3864,8 @@ search_line:
#if defined(FEAT_QUICKFIX)
if (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)))