summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 14:27:55 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 14:27:55 -0500
commit6b12382231f6fe8af16554d48f2a74d9a6e53835 (patch)
tree2918f5d1ec1a0ddaeae24cf1ef2f912f3026cffa /ted.h
parent759404e118b701a7c0264de5791f0158db0c7e13 (diff)
ask to reload when file is externally changed
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 05283f7..7afc69c 100644
--- a/ted.h
+++ b/ted.h
@@ -154,6 +154,7 @@ ENUM_U16 {
MENU_OPEN,
MENU_SAVE_AS,
MENU_WARN_UNSAVED, // warn about unsaved changes
+ MENU_ASK_RELOAD, // prompt about whether to reload file which has ben changed by another program
} ENUM_U16_END(Menu);
// file entries for file selectors
@@ -216,6 +217,7 @@ typedef struct Ted {
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
+ char ask_reload[TED_PATH_MAX]; // file name which we want to reload
char local_data_dir[TED_PATH_MAX];
char global_data_dir[TED_PATH_MAX];
char home[TED_PATH_MAX];