diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-04 21:40:34 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-11-04 21:40:34 +0000 |
commit | 87e934766bdddb490c05ba0d12dfae99f081495e (patch) | |
tree | 3f4b199a28ae9e4269b6f94bfa4e3b2a2cea24de | |
parent | e4b59681b2290244178b68f2f21d673c771724f7 (diff) | |
download | weechat-87e934766bdddb490c05ba0d12dfae99f081495e.zip |
Fixed cursor position bug when using history with up/down keys
-rw-r--r-- | src/gui/gui-action.c | 4 | ||||
-rw-r--r-- | weechat/src/gui/gui-action.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/gui-action.c b/src/gui/gui-action.c index d12d42ab6..eb1c941d9 100644 --- a/src/gui/gui-action.c +++ b/src/gui/gui-action.c @@ -695,6 +695,7 @@ gui_action_up (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; strcpy (window->buffer->input_buffer, window->buffer->ptr_history->text); gui_draw_buffer_input (window->buffer, 0); @@ -728,6 +729,7 @@ gui_action_up_global (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; strcpy (window->buffer->input_buffer, history_global_ptr->text); gui_draw_buffer_input (window->buffer, 0); @@ -792,6 +794,7 @@ gui_action_down (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; if (window->buffer->ptr_history) strcpy (window->buffer->input_buffer, window->buffer->ptr_history->text); @@ -827,6 +830,7 @@ gui_action_down_global (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; if (history_global_ptr) strcpy (window->buffer->input_buffer, history_global_ptr->text); diff --git a/weechat/src/gui/gui-action.c b/weechat/src/gui/gui-action.c index d12d42ab6..eb1c941d9 100644 --- a/weechat/src/gui/gui-action.c +++ b/weechat/src/gui/gui-action.c @@ -695,6 +695,7 @@ gui_action_up (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; strcpy (window->buffer->input_buffer, window->buffer->ptr_history->text); gui_draw_buffer_input (window->buffer, 0); @@ -728,6 +729,7 @@ gui_action_up_global (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; strcpy (window->buffer->input_buffer, history_global_ptr->text); gui_draw_buffer_input (window->buffer, 0); @@ -792,6 +794,7 @@ gui_action_down (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; if (window->buffer->ptr_history) strcpy (window->buffer->input_buffer, window->buffer->ptr_history->text); @@ -827,6 +830,7 @@ gui_action_down_global (t_gui_window *window) gui_optimize_input_buffer_size (window->buffer); window->buffer->input_buffer_pos = window->buffer->input_buffer_length; + window->buffer->input_buffer_1st_display = 0; if (history_global_ptr) strcpy (window->buffer->input_buffer, history_global_ptr->text); |