fix(window): respect hide flag of float windows when switching (#30507)

This commit is contained in:
glepnir
2024-09-28 06:02:14 +08:00
committed by GitHub
parent 09d76afe84
commit 7b71fdbc1e
3 changed files with 21 additions and 4 deletions

View File

@@ -590,7 +590,7 @@ void ex_listdo(exarg_T *eap)
break;
}
assert(wp);
execute = !wp->w_floating || wp->w_config.focusable;
execute = !wp->w_floating || (!wp->w_config.hide && wp->w_config.focusable);
if (execute) {
win_goto(wp);
if (curwin != wp) {