1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

core: make search_stop scroll to search start position (issue #2093)

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:
Trygve Aaberge
2024-03-13 13:44:17 +01:00
committed by Sébastien Helleu
parent 90b96f9cdd
commit fe14cedf92
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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);
}
}