diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-12 13:05:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-12 13:05:57 +0000 |
commit | a444a3c92add1f4dc3681e6ea01ebf921a451da4 (patch) | |
tree | ea55d264c60141eb94b0309a1dbd79fb5f15fca2 /src | |
parent | 396ece99b674c1eb673af5be0160aae1568437d6 (diff) | |
download | irssi-a444a3c92add1f4dc3681e6ea01ebf921a451da4.zip |
/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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/window-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c index e8ec465d..c4107798 100644 --- a/src/fe-common/core/window-commands.c +++ b/src/fe-common/core/window-commands.c @@ -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; |