forked from aniani/vim
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:
@@ -7193,11 +7193,10 @@ win_id2tabwin(typval_T *argvars, list_T *list)
|
||||
}
|
||||
|
||||
win_T *
|
||||
win_id2wp(typval_T *argvars)
|
||||
win_id2wp(int id)
|
||||
{
|
||||
win_T *wp;
|
||||
tabpage_T *tp;
|
||||
int id = tv_get_number(&argvars[0]);
|
||||
|
||||
FOR_ALL_TAB_WINDOWS(tp, wp)
|
||||
if (wp->w_id == id)
|
||||
|
Reference in New Issue
Block a user