mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 17:42:37 +00:00
@@ -3646,15 +3646,6 @@ static int qf_open_new_cwindow(qf_info_T *qi, int height)
|
|||||||
if (win_split(height, flags) == FAIL) {
|
if (win_split(height, flags) == FAIL) {
|
||||||
return FAIL; // not enough room for window
|
return FAIL; // not enough room for window
|
||||||
}
|
}
|
||||||
|
|
||||||
// User autocommands may have invalidated the previous window after calling
|
|
||||||
// win_split, so add a check to ensure that the win is still here
|
|
||||||
if (IS_LL_STACK(qi) && !win_valid(win)) {
|
|
||||||
// close the window that was supposed to be for the loclist
|
|
||||||
win_close(curwin, false, false);
|
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
RESET_BINDING(curwin);
|
RESET_BINDING(curwin);
|
||||||
|
|
||||||
if (IS_LL_STACK(qi)) {
|
if (IS_LL_STACK(qi)) {
|
||||||
|
|||||||
@@ -1420,12 +1420,10 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
|
|||||||
p_wh = i;
|
p_wh = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!win_valid(oldwin)) {
|
if (win_valid(oldwin)) {
|
||||||
return FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Send the window positions to the UI
|
// Send the window positions to the UI
|
||||||
oldwin->w_pos_changed = true;
|
oldwin->w_pos_changed = true;
|
||||||
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user