1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use 0 not 10 on window close message

This commit is contained in:
James Booth 2013-05-16 23:08:58 +01:00
parent e21c2276dc
commit 2f149e0bc6

View File

@ -2572,7 +2572,11 @@ _cmd_close(gchar **args, struct cmd_help_t help)
// close the window // close the window
ui_close_win(index); 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; return TRUE;
} }