diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2018-11-20 21:02:38 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-01-07 16:57:58 +0100 |
commit | bcfc71f4fe195f8ef98ea29a44f9c7a25a6aa75f (patch) | |
tree | b14e6dabae6f755ae886f476ec47bd71aee7fc30 /src/help.c | |
parent | a5e660899217e8ca552096375db6be0f83f939ea (diff) | |
download | calcurse-bcfc71f4fe195f8ef98ea29a44f9c7a25a6aa75f.tar.gz calcurse-bcfc71f4fe195f8ef98ea29a44f9c7a25a6aa75f.zip |
Safety exit and read-only mode
The key_generic_command() function provides a "safety exit" in case of
online changes that should be dropped at exit when auto_save is on, or
(NEW) should be saved at exit when in read-only mode. A check for
unsaved changes has been added. The command prompt has been extended
with minimal help information.
After commit 05e0fd0 "Quit, autosave and interactive save" you could not
leave calcurse in read-only mode with the quit command because the
key_generic_quit() function interpreted IO_SAVE_CANCEL as a decision (by
the user) to cancel a save-conflict and cancelled the quit as well. Now
the function will quit unconditionally in read-only mode (as stated in
the man page). In normal mode a check for unsaved changes has been added
in case auto-save is off.
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/help.c')
0 files changed, 0 insertions, 0 deletions