From 6b12382231f6fe8af16554d48f2a74d9a6e53835 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 5 Feb 2021 14:27:55 -0500 Subject: ask to reload when file is externally changed --- ted.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ted.h') 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]; -- cgit v1.2.3