summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-25 20:12:55 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-25 20:12:55 -0500
commitbf9a22bfff4051a70dcebbcd471eddb7b7724f7a (patch)
tree45c1864c78c6744977e39a994a1736712c419e9b /ted.h
parent261c177480a0379e77af6ad36a6259f751a504c7 (diff)
clip selector, save as
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index bdc2f60..e1f6498 100644
--- a/ted.h
+++ b/ted.h
@@ -76,7 +76,8 @@ typedef struct {
ENUM_U16 {
MENU_NONE,
- MENU_OPEN
+ MENU_OPEN,
+ MENU_SAVE_AS
} ENUM_U16_END(Menu);
// file entries for file selectors
@@ -95,6 +96,7 @@ typedef struct {
char cwd[TED_PATH_MAX];
bool open; // is the file selector on screen?
bool submitted; // set to true if the line buffer was just submitted this frame.
+ bool create_menu; // this is for creating files, not opening files
} FileSelector;
typedef struct Ted {