summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty/src/input.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs
index 466fe130..0aa2cbba 100644
--- a/alacritty/src/input.rs
+++ b/alacritty/src/input.rs
@@ -151,7 +151,10 @@ impl<T: EventListener> Execute<T> for Action {
ctx.display().hint_state.start(hint.clone());
ctx.mark_dirty();
},
- Action::ToggleViMode => ctx.toggle_vi_mode(),
+ Action::ToggleViMode => {
+ ctx.on_typing_start();
+ ctx.toggle_vi_mode()
+ },
Action::ViMotion(motion) => {
ctx.on_typing_start();
ctx.terminal_mut().vi_motion(*motion);