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:23:27 +0100
committerJames Booth <boothj5@gmail.com>2013-05-16 23:23:27 +0100
commitc6265adef4565da37206188a87522d868cc17c9f (patch)
tree6bb3a28076ec076eab15ef7eb51283d802841831 /src
parent2f149e0bc664357d5f06d3fd35b013caad59aebf (diff)
downloadprofani-tty-c6265adef4565da37206188a87522d868cc17c9f.tar.gz
Show correct message when closing window 0
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 15a6228d..90e5138b 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -2544,7 +2544,7 @@ _cmd_close(gchar **args, struct cmd_help_t help)
         index = atoi(args[0]);
         if (index == 0) {
             index = 9;
-        } else {
+        } else if (index != 10) {
             index--;
         }
     }