summaryrefslogtreecommitdiff
path: root/content/handlers/html/redraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/html/redraw.c')
-rw-r--r--content/handlers/html/redraw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/handlers/html/redraw.c b/content/handlers/html/redraw.c
index 7c96c908a..08a284b57 100644
--- a/content/handlers/html/redraw.c
+++ b/content/handlers/html/redraw.c
@@ -184,8 +184,7 @@ text_redraw(const char *utf8_text,
unsigned end_idx;
/* first try the browser window's current selection */
- if (selection_defined(sel) &&
- selection_highlighted(sel,
+ if (selection_highlighted(sel,
offset,
offset + len,
&start_idx,