Set swap correctly when closing a window

I knew I missed something.
master
C. McEnroe 2020-02-13 05:10:55 -05:00
parent 92ccabaafd
commit a6bc2ea7c3
1 changed files with 1 additions and 0 deletions

1
ui.c
View File

@ -797,6 +797,7 @@ static void windowClose(size_t num) {
if (windows.swap >= num) windows.swap--; if (windows.swap >= num) windows.swap--;
if (windows.show == num) { if (windows.show == num) {
windowShow(windows.swap); windowShow(windows.swap);
windows.swap = windows.show;
} else if (windows.show > num) { } else if (windows.show > num) {
windows.show--; windows.show--;
} }