summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-12-11 21:06:55 +0100
committerqkzk <qu3nt1n@gmail.com>2023-12-11 21:06:55 +0100
commitbe4fedce8207ec20e2bb1138537e8ced0a5158ca (patch)
treed6507c4b2e10dd78203d058ccf1fa60acdf323a9
parentbd124d63d862c49acf50a8cff31ed02325e1fde2 (diff)
FIX command mode does nothing
-rw-r--r--src/modes/edit/leave_mode.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modes/edit/leave_mode.rs b/src/modes/edit/leave_mode.rs
index 84e68c1..d201fa3 100644
--- a/src/modes/edit/leave_mode.rs
+++ b/src/modes/edit/leave_mode.rs
@@ -91,7 +91,11 @@ impl LeaveMode {
LeaveMode::search(status)?
}
Edit::InputCompleted(InputCompleted::Goto) => LeaveMode::goto(status)?,
- Edit::InputCompleted(InputCompleted::Command) => LeaveMode::command(status, binds)?,
+ Edit::InputCompleted(InputCompleted::Command) => {
+ must_reset_mode = false;
+ must_refresh = false;
+ LeaveMode::command(status, binds)?;
+ }
Edit::NeedConfirmation(_) => (),
}
@@ -407,6 +411,8 @@ impl LeaveMode {
let Ok(command) = ActionMap::from_str(command_str) else {
return Ok(());
};
+ log_info!("Command {command}");
+
command.matcher(status, binds)
}