diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-16 18:13:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-16 18:13:22 +0000 |
| commit | bd089c845f32016e450eced3cfbf9e82657fb771 (patch) | |
| tree | b0579b5fa9442b69c9e64d48264e26217039e846 /terminal.h | |
| parent | search/render: initial support for highlighting all visible matches (diff) | |
search: break out “find next match” logic to a new function
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -262,6 +262,7 @@ enum selection_kind { }; enum selection_direction {SELECTION_UNDIR, SELECTION_LEFT, SELECTION_RIGHT}; enum selection_scroll_direction {SELECTION_SCROLL_NOT, SELECTION_SCROLL_UP, SELECTION_SCROLL_DOWN}; +enum search_direction { SEARCH_BACKWARD, SEARCH_FORWARD}; struct ptmx_buffer { void *data; @@ -501,7 +502,7 @@ struct terminal { size_t len; size_t sz; size_t cursor; - enum { SEARCH_BACKWARD, SEARCH_FORWARD} direction; + enum search_direction direction; int original_view; bool view_followed_offset; |
