From 8c042210a86e3eeb8fcb06d184223644b71fe7f8 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 28 Jan 2010 15:12:40 +0100 Subject: [PATCH] Fix bug with global history, reset pointer to last entry after each user input (bug #28754) --- ChangeLog | 2 ++ src/gui/gui-input.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8c98e6456..493ee6c21 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ Version 0.3.2 (under dev!) * core: add signal "day_changed" * core: remove unneeded space after time on each line if option weechat.look.buffer_time_format is set to empty value (bug #28751) +* gui: fix bug with global history, reset pointer to last entry after each user + input (bug #28754) * api: add missing infos in functions buffer_get_integer / buffer_get_string and in buffer infolist * irc: fix bug with SSL connection (fails sometimes when ssl_verify is on) diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index e184a2e14..3dd4d431f 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -304,6 +304,7 @@ gui_input_return (struct t_gui_window *window) window->buffer->input_buffer_1st_display = 0; gui_completion_stop (window->buffer->completion, 1); window->buffer->ptr_history = NULL; + history_global_ptr = NULL; gui_input_optimize_size (window->buffer); gui_input_text_changed_modifier_and_signal (window->buffer); input_data (window->buffer, command);