summaryrefslogtreecommitdiff
path: root/src/gui/gui-input.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-09-24 21:45:01 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-09-24 21:45:01 +0200
commitc1aa51fa9c9143729455c2fe19b70965abd82375 (patch)
tree920a05c937b81c3279074b9b3c14b055ec812412 /src/gui/gui-input.c
parentf91f57f12c2266db28b9e81254ce494c07e8db35 (diff)
downloadweechat-c1aa51fa9c9143729455c2fe19b70965abd82375.zip
core: fix crash on buffer close when option weechat.look.hotlist_remove is set to "merged" (closes #199)
Diffstat (limited to 'src/gui/gui-input.c')
-rw-r--r--src/gui/gui-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c
index 6e356da96..e7824dcd8 100644
--- a/src/gui/gui-input.c
+++ b/src/gui/gui-input.c
@@ -1383,7 +1383,7 @@ gui_input_jump_smart (struct t_gui_buffer *buffer)
if (!gui_hotlist_initial_buffer)
gui_hotlist_initial_buffer = window->buffer;
gui_window_switch_to_buffer (window, gui_hotlist->buffer, 1);
- gui_hotlist_remove_buffer (window->buffer);
+ gui_hotlist_remove_buffer (window->buffer, 0);
scroll_to_bottom = 1;
}
else