only quit if changes are saved
This commit is contained in:
+4
-2
@@ -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),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user