summaryrefslogtreecommitdiff
path: root/content/textsearch.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-23 23:33:52 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-23 23:33:52 +0100
commit5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a (patch)
treea739586369f7ad25a791563d256320b6560b9553 /content/textsearch.c
parent6108d210d508e754904c46f687adbc87ab98dc78 (diff)
downloadnetsurf-5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a.tar.gz
netsurf-5ce8f0baf1af7ce119c0c3c5b4d32934a1d95a0a.tar.bz2
make text selection context an opaque interface
Diffstat (limited to 'content/textsearch.c')
-rw-r--r--content/textsearch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/textsearch.c b/content/textsearch.c
index 18f9073dc..802832089 100644
--- a/content/textsearch.c
+++ b/content/textsearch.c
@@ -180,6 +180,7 @@ static void search_show_all(bool all, struct textsearch_context *context)
a->sel = selection_create(context->c);
if (a->sel != NULL) {
+ selection_init(a->sel);
selection_set_position(a->sel,
a->start_idx,
a->end_idx);