1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

Fix crash with /upgrade (problem when closing buffers)

This commit is contained in:
Sebastien Helleu
2009-05-19 14:07:51 +02:00
parent 67f8f7386a
commit 37a73d8348
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1404,7 +1404,7 @@ gui_buffer_close (struct t_gui_buffer *buffer)
window is displaying buffer, or buffer # - 1 */
ptr_buffer_visited = NULL;
if (CONFIG_BOOLEAN(config_look_jump_previous_buffer_when_closing)
&& (gui_current_window->buffer == buffer))
&& gui_current_window && (gui_current_window->buffer == buffer))
{
index = gui_buffer_visited_get_index_previous ();
if (index >= 0)