mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
Make sure window is still valid in the middle of calling :lopen (#14240)
Make sure that oldwin is not invalid after splitting Revisit this when porting vim patch v8.1.0892 and related quickfix patches.
This commit is contained in:
@@ -1301,6 +1301,10 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
|
||||
p_wh = i;
|
||||
}
|
||||
|
||||
if (!win_valid(oldwin)) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
// Send the window positions to the UI
|
||||
oldwin->w_pos_changed = true;
|
||||
|
||||
|
Reference in New Issue
Block a user