aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/search.c b/search.c
index 37ab5684..992de851 100644
--- a/search.c
+++ b/search.c
@@ -173,6 +173,11 @@ search_update(struct terminal *term)
start_col = term->cols - 1;
}
+
+ /* No match */
+ term->search.match = (struct coord){-1, -1};
+ term->search.match_len = 0;
+ selection_cancel(term);
}
void