mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
core: make search_stop scroll to search start position
When you run /input search_stop it should scroll to the scroll position
the buffer was at before starting the search, rather than to the bottom
of the buffer.
Fixes a regression introduced in commit b83b428c5c
Fixes #2093
This commit is contained in:
committed by
Sébastien Helleu
parent
dd128dace8
commit
811390ebb1
@@ -1872,13 +1872,13 @@ gui_window_search_stop (struct t_gui_window *window, int stop_here)
|
||||
|
||||
if (search == GUI_BUFFER_SEARCH_LINES)
|
||||
{
|
||||
window->scroll->text_search_start_line = NULL;
|
||||
if (!stop_here)
|
||||
{
|
||||
window->scroll->start_line = window->scroll->text_search_start_line;
|
||||
window->scroll->start_line_pos = 0;
|
||||
gui_hotlist_remove_buffer (window->buffer, 0);
|
||||
}
|
||||
window->scroll->text_search_start_line = NULL;
|
||||
gui_buffer_ask_chat_refresh (window->buffer, 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user