From 2f149e0bc664357d5f06d3fd35b013caad59aebf Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 16 May 2013 23:08:58 +0100 Subject: [PATCH] Use 0 not 10 on window close message --- src/command/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }