summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-08 11:33:43 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-08 11:33:43 -0500
commitabec84f7b2ee0f75c4622a6d4469dbf0c7eaf5ad (patch)
tree9cc6ccef1b897db7127f88a4de55c2f9b85c9535 /ted.h
parentf7828a0718b730ffdc6b9f25e5d11cbfd666acf1 (diff)
find show number of matches
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 9b2c18b..3694858 100644
--- a/ted.h
+++ b/ted.h
@@ -190,6 +190,7 @@ typedef struct Node {
#define TED_MAX_NODES 256
// max tabs per node
#define TED_MAX_TABS 100
+
typedef struct Ted {
SDL_Window *window;
Font *font_bold;
@@ -218,6 +219,7 @@ typedef struct Ted {
bool search_cwd; // should the working directory be searched for files? set to true if the executable isn't "installed"
bool quit; // if set to true, the window will close next frame. NOTE: this doesn't check for unsaved changes!!
bool find; // is the find menu open?
+ u32 find_match_count; // how many matches of the search term were there?
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)
char warn_overwrite[TED_PATH_MAX]; // file name user is trying to overwrite