summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-01-28 15:12:40 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-01-28 15:12:40 +0100
commit8c042210a86e3eeb8fcb06d184223644b71fe7f8 (patch)
tree2b574cb25e27e339f3a6ca9e27773a793f99c990
parent16a02cddafb6cf90da18be251241d00273c282d7 (diff)
downloadweechat-8c042210a86e3eeb8fcb06d184223644b71fe7f8.zip
Fix bug with global history, reset pointer to last entry after each user input (bug #28754)
-rw-r--r--ChangeLog2
-rw-r--r--src/gui/gui-input.c1
2 files changed, 3 insertions, 0 deletions
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);