0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0892: failure when closing a window when location list is in use

Problem:    Failure when closing a window when location list is in use.
Solution:   Handle the situation gracefully. Make sure memory for 'switchbuf'
            is not freed at the wrong time. (Yegappan Lakshmanan,
            closes #3928)
This commit is contained in:
Bram Moolenaar
2019-02-10 22:59:04 +01:00
parent d77aa4d22e
commit eeb1b9c7ed
7 changed files with 95 additions and 36 deletions

View File

@@ -8587,7 +8587,7 @@ find_win_by_nr_or_id(typval_T *vp)
int nr = (int)tv_get_number_chk(vp, NULL);
if (nr >= LOWEST_WIN_ID)
return win_id2wp(vp);
return win_id2wp(tv_get_number(vp));
return find_win_by_nr(vp, NULL);
}