1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

/WINDOW CLOSE <first> didn't work if <last> too wasn't specified..

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1737 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-08-12 13:05:57 +00:00 committed by cras
parent 396ece99b6
commit a444a3c92a

View File

@ -188,7 +188,7 @@ static void cmd_window_close(const char *data)
}
first_num = *first == '\0' ? active_win->refnum : atoi(first);
last_num = *last == '\0' ? active_win->refnum : atoi(last);
last_num = *last == '\0' ? first_num : atoi(last);
/* get list of windows to destroy */
destroys = NULL;