diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/html_redraw.c | 5 | ||||
-rw-r--r-- | render/textplain.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 4cfa7f3e2..8913711ba 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -35,7 +35,6 @@ #include "content/content_protected.h" #include "css/css.h" #include "css/utils.h" -#include "desktop/gui.h" #include "desktop/plotters.h" #include "desktop/selection.h" #include "desktop/textinput.h" @@ -877,8 +876,8 @@ bool text_redraw(const char *utf8_text, size_t utf8_len, /* what about the current search operation, if any? */ if (!highlighted && (current_redraw_browser->search_context != NULL) && - gui_search_term_highlighted( - current_redraw_browser->window, + search_term_highlighted( + current_redraw_browser, offset, offset + len, &start_idx, &end_idx, current_redraw_browser-> diff --git a/render/textplain.c b/render/textplain.c index 8a1bdc88a..8f5b80bff 100644 --- a/render/textplain.c +++ b/render/textplain.c @@ -785,8 +785,7 @@ bool textplain_redraw(struct content *c, int x, int y, if (!highlighted && (bw->search_context != NULL)) { unsigned start_idx, end_idx; - if (gui_search_term_highlighted( - bw->window, + if (search_term_highlighted(bw, tab_ofst, tab_ofst + 1, &start_idx, &end_idx, bw->search_context)) |