diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-08 16:35:46 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-08 16:36:15 -0500 |
commit | 91c98a180acab2152f4c60070a4bac3a98d9d486 (patch) | |
tree | f9f3a7b21c12c2c805970f2f1d7180b5f98557d7 /ted.h | |
parent | f05a22635e54564e9dfed28f83ea583a19046d03 (diff) |
show which result user is on
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -191,6 +191,11 @@ typedef struct Node { // max tabs per node #define TED_MAX_TABS 100 +typedef struct { + BufferPos start; + BufferPos end; +} FindResult; + typedef struct Ted { SDL_Window *window; Font *font_bold; @@ -221,8 +226,7 @@ typedef struct Ted { bool find; // is the find menu open? pcre2_code *find_code; pcre2_match_data *find_match_data; - u32 find_match_count; // how many matches of the search term were there? - u32 find_match_pos; // which match we are on, or U32_MAX if not on a match. + FindResult *find_results; bool find_invalid_pattern; // invalid regex? Command warn_unsaved; // if non-zero, the user is trying to execute this command, but there are unsaved changes char warn_unsaved_names[TED_PATH_MAX]; // comma-separated list of files with unsaved changes (only applicable if warn_unsaved != 0) |