only quit if changes are saved

This commit is contained in:
alice pellerin
2026-03-18 19:25:48 -05:00
parent a699c0a371
commit 2ee61fef71
3 changed files with 16 additions and 4 deletions
+4 -2
View File
@@ -99,7 +99,8 @@ impl Default for Config {
[
(Mode::Normal, [
(None, [
("q".try_into().unwrap(), Action::Quit),
("q".try_into().unwrap(), Action::QuitIfSaved),
("Q".try_into().unwrap(), Action::Quit),
("v".try_into().unwrap(), Action::SelectMode),
@@ -150,7 +151,8 @@ impl Default for Config {
].into()),
(Mode::Select, [
(None, [
("q".try_into().unwrap(), Action::Quit),
("q".try_into().unwrap(), Action::QuitIfSaved),
("Q".try_into().unwrap(), Action::Quit),
("v".try_into().unwrap(), Action::NormalMode),