summaryrefslogtreecommitdiff
path: root/render/textplain.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/textplain.c')
-rw-r--r--render/textplain.c3
1 files changed, 1 insertions, 2 deletions
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))