1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fixed closing window 0

This commit is contained in:
James Booth 2014-12-01 23:15:22 +00:00
parent 4740f84c24
commit e756daf2be

View File

@ -2990,10 +2990,6 @@ cmd_close(gchar **args, struct cmd_help_t help)
return TRUE; return TRUE;
} }
if (index == 0) {
index = 10;
}
if (!ui_win_exists(index)) { if (!ui_win_exists(index)) {
cons_show("Window is not open."); cons_show("Window is not open.");
return TRUE; return TRUE;