aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/search.c b/search.c
index 8f28a656..817f18b5 100644
--- a/search.c
+++ b/search.c
@@ -155,6 +155,14 @@ 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;
+ render_refresh_search(term);
+}
+
static void
search_update_selection(struct terminal *term,
int start_row, int start_col,