summaryrefslogtreecommitdiff
path: root/src
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 /src
parent16a02cddafb6cf90da18be251241d00273c282d7 (diff)
downloadweechat-8c042210a86e3eeb8fcb06d184223644b71fe7f8.zip
Fix bug with global history, reset pointer to last entry after each user input (bug #28754)
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-input.c1
1 files changed, 1 insertions, 0 deletions
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);