From a6bc2ea7c38814a5fd552826393cb870efdc263b Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Thu, 13 Feb 2020 05:10:55 -0500 Subject: Set swap correctly when closing a window I knew I missed something. --- ui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ui.c') 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--; } -- cgit 1.4.1-2-gfad0