summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-01-21 12:48:15 +0300
committerGitHub <noreply@github.com>2022-01-21 12:48:15 +0300
commit14c22b172fb312be34ac17682c3fc67a578ed520 (patch)
tree380bc5a711c0067e0406a8e7ef225cc202b65730
parentc4d610d5bfffa332a4d74b5b67174be73b049c16 (diff)
downloadalacritty-14c22b172fb312be34ac17682c3fc67a578ed520.tar.gz
alacritty-14c22b172fb312be34ac17682c3fc67a578ed520.zip
Reset cursor blinking on ToggleViMode
Fixes #4468.
-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);