about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-05-16 23:08:58 +0100
committerJames Booth <boothj5@gmail.com>2013-05-16 23:08:58 +0100
commit2f149e0bc664357d5f06d3fd35b013caad59aebf (patch)
treef26b84a9cd1627d8b8194d1bd349aef046feae5e /src
parente21c2276dcbdb428d56aae62dda2cb6f3d47ef28 (diff)
downloadprofani-tty-2f149e0bc664357d5f06d3fd35b013caad59aebf.tar.gz
Use 0 not 10 on window close message
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 0b6f9a0f..15a6228d 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -2572,7 +2572,11 @@ _cmd_close(gchar **args, struct cmd_help_t help)
 
     // close the window
     ui_close_win(index);
-    cons_show("Closed window %d", index + 1);
+    int ui_index = index + 1;
+    if (ui_index == 10) {
+        ui_index = 0;
+    }
+    cons_show("Closed window %d", ui_index);
 
     return TRUE;
 }