diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 22:59:40 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-23 23:00:08 +0100 |
commit | 6108d210d508e754904c46f687adbc87ab98dc78 (patch) | |
tree | a4eb69842a1f3add488def75c9c88e384e5257da /content/handlers/html/redraw.c | |
parent | 1161029d2952e5e11062d750a0a681643574428e (diff) | |
download | netsurf-6108d210d508e754904c46f687adbc87ab98dc78.tar.gz netsurf-6108d210d508e754904c46f687adbc87ab98dc78.tar.bz2 |
remove all direct access to selection structure
Diffstat (limited to 'content/handlers/html/redraw.c')
-rw-r--r-- | content/handlers/html/redraw.c | 3 |
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, |