diff options
author | Timo Sirainen <cras@irssi.org> | 2002-08-29 19:45:43 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-08-29 19:45:43 +0000 |
commit | 886c92e141bda22005b65fed815e8ba2099e5393 (patch) | |
tree | c54bfc88c8ac7bb8c6550084488d51140b28dd78 /src | |
parent | fd6fe24317fa190fec840c54087299fc3b860789 (diff) | |
download | irssi-886c92e141bda22005b65fed815e8ba2099e5393.zip |
/FOREACH WINDOW /WINDOW CLOSE could crash irssi.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2907 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/window-commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c index e877b906..26ec2286 100644 --- a/src/fe-common/core/window-commands.c +++ b/src/fe-common/core/window-commands.c @@ -738,7 +738,8 @@ static void cmd_foreach_window(const char *data) list = g_slist_remove(list, list->data); } - active_win = old; + if (g_slist_find(windows, old) != NULL) + active_win = old; } void window_commands_init(void) |