summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-03-13 13:44:17 +0100
committerSébastien Helleu <flashcode@flashtux.org>2024-03-13 13:50:04 +0100
commit811390ebb1d4a95a31eea5d45bdb000855da1b15 (patch)
treed4d1700b584b0339b6aab9bdb2fbb3d9e8248ae5 /src
parentdd128dace8c5829ac1121fbeae376fc7fafdbc5b (diff)
downloadweechat-811390ebb1d4a95a31eea5d45bdb000855da1b15.zip
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 b83b428c5cc48043cb625844b87e94acbc194ba1 Fixes #2093
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c
index af5f80e07..1fbd0b8a4 100644
--- a/src/gui/gui-window.c
+++ b/src/gui/gui-window.c
@@ -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);
}
}