mirror of
https://github.com/neovim/neovim.git
synced 2026-08-27 09:31:47 +00:00
fix(float): properly find last window of tabpage (#30571)
(cherry picked from commit df915f3afc)
This commit is contained in:
committed by
github-actions[bot]
parent
1fc09b0738
commit
045afa9e8a
@@ -58,7 +58,7 @@ win_T *win_new_float(win_T *wp, bool last, WinConfig fconfig, Error *err)
|
||||
if (!tp) {
|
||||
return NULL;
|
||||
}
|
||||
tp_last = tp->tp_lastwin;
|
||||
tp_last = tp == curtab ? lastwin : tp->tp_lastwin;
|
||||
while (tp_last->w_floating && tp_last->w_prev) {
|
||||
tp_last = tp_last->w_prev;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user