summaryrefslogtreecommitdiff
path: root/content/textsearch.c
diff options
context:
space:
mode:
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);