Merge pull request #17360 from lewis6991/fix-window-close

fix: close floating windows when calling win_close()
This commit is contained in:
Christian Clason
2022-02-11 10:37:13 +01:00
committed by GitHub
10 changed files with 80 additions and 31 deletions

View File

@@ -395,7 +395,7 @@ void nvim_win_hide(Window window, Error *err)
TryState tstate;
try_enter(&tstate);
if (tabpage == curtab) {
win_close(win, false);
win_close(win, false, false);
} else {
win_close_othertab(win, false, tabpage);
}