about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-10-03 00:02:30 +0100
committerJames Booth <boothj5@gmail.com>2013-10-03 00:02:30 +0100
commit738be65edc17d44a3305866a4a19b8729c133e5b (patch)
tree2cd835ba3acaf05c1668f164f1a80e7a06917be7 /src
parent6ff7177b9b505d290009080a30f73b16ee2c276a (diff)
downloadprofani-tty-738be65edc17d44a3305866a4a19b8729c133e5b.tar.gz
Fix crash when tidying windows
Diffstat (limited to 'src')
-rw-r--r--src/ui/windows.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 684e98fd..87b61ab1 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -413,6 +413,8 @@ wins_tidy(void)
         }
 
         windows = new_windows;
+        current = 1;
+        ui_switch_win(1);
         return TRUE;
     } else {
         return FALSE;