summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-25 17:07:09 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-25 17:07:09 -0500
commita56f549a266e14cdc00a98e8dc3e154f5ac6c23e (patch)
treeb513d9bbf656fe1ac054e3201fe10ac94de461ef /ted.h
parentf6d49d377ac136fc29457b3b4501f0488b6412e3 (diff)
error box; generally better error handling
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 8556d36..15c13c6 100644
--- a/ted.h
+++ b/ted.h
@@ -8,6 +8,7 @@ typedef struct {
u32 colors[COLOR_COUNT];
u16 text_size;
u16 max_menu_width;
+ u16 error_display_time;
u8 tab_width;
u8 cursor_width;
u8 undo_save_time;
@@ -115,9 +116,11 @@ typedef struct Ted {
FileSelector file_selector;
TextBuffer line_buffer; // general-purpose line buffer for inputs -- used for menus
TextBuffer main_buffer;
+ double error_time; // time error box was opened (in seconds -- see time_get_seconds)
KeyAction key_actions[KEY_COMBO_COUNT];
char cwd[TED_PATH_MAX]; // current working directory
char error[256];
+ char error_shown[256]; // error display in box on screen
} Ted;
// should the working directory be searched for files? set to true if the executable isn't "installed"