diff options
author | James Booth <boothj5@gmail.com> | 2013-05-16 23:08:58 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-05-16 23:08:58 +0100 |
commit | 2f149e0bc664357d5f06d3fd35b013caad59aebf (patch) | |
tree | f26b84a9cd1627d8b8194d1bd349aef046feae5e | |
parent | e21c2276dcbdb428d56aae62dda2cb6f3d47ef28 (diff) | |
download | profani-tty-2f149e0bc664357d5f06d3fd35b013caad59aebf.tar.gz |
Use 0 not 10 on window close message
-rw-r--r-- | src/command/command.c | 6 |
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; } |