summary refs log tree commit diff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index b1eedaf..2fbb720 100644
--- a/ui.c
+++ b/ui.c
@@ -797,6 +797,7 @@ static void windowClose(size_t num) {
 	if (windows.swap >= num) windows.swap--;
 	if (windows.show == num) {
 		windowShow(windows.swap);
+		windows.swap = windows.show;
 	} else if (windows.show > num) {
 		windows.show--;
 	}