aboutsummaryrefslogtreecommitdiff
path: root/search.h
diff options
context:
space:
mode:
Diffstat (limited to 'search.h')
-rw-r--r--search.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/search.h b/search.h
index 18af0d62..24828512 100644
--- a/search.h
+++ b/search.h
@@ -14,3 +14,11 @@ void search_input(
void search_add_chars(struct terminal *term, const char *text, size_t len);
void search_selection_cancelled(struct terminal *term);
+
+struct search_match_iterator {
+ struct terminal *term;
+ struct coord start;
+};
+
+struct search_match_iterator search_matches_new_iter(struct terminal *term);
+struct range search_matches_next(struct search_match_iterator *iter);