aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/search.c b/search.c
index 8f28a656..2db66cc9 100644
--- a/search.c
+++ b/search.c
@@ -155,6 +155,13 @@ search_cancel(struct terminal *term)
selection_cancel(term);
}
+void
+search_selection_cancelled(struct terminal *term)
+{
+ term->search.match = (struct coord){-1, -1};
+ term->search.match_len = 0;
+}
+
static void
search_update_selection(struct terminal *term,
int start_row, int start_col,