1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

Fixed crash when closing a buffer used by more than one window

This commit is contained in:
Sebastien Helleu
2005-09-13 17:04:34 +00:00
parent a29416e352
commit 8a299adb3b
12 changed files with 906 additions and 908 deletions
+2 -2
View File
@@ -2771,9 +2771,9 @@ weechat_cmd_window (int argc, char **argv)
gui_window_merge_auto (gui_current_window);
}
else if (ascii_strcasecmp (argv[0], "-1") == 0)
gui_switch_to_previous_window ();
gui_switch_to_previous_window (gui_current_window);
else if (ascii_strcasecmp (argv[0], "+1") == 0)
gui_switch_to_next_window ();
gui_switch_to_next_window (gui_current_window);
else
{
irc_display_prefix (NULL, PREFIX_ERROR);