diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-03-25 15:02:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 15:02:44 +0300 |
commit | b16fe1259cebcd6adb4bc92f7025beb696412b89 (patch) | |
tree | 405d828b00e82d90d8c2cec5d735463fa05e6db1 /alacritty/src/input.rs | |
parent | e7bb6c2ea78b719dde491515698e5707a50773b2 (diff) | |
download | r-alacritty-b16fe1259cebcd6adb4bc92f7025beb696412b89.tar.gz r-alacritty-b16fe1259cebcd6adb4bc92f7025beb696412b89.tar.bz2 r-alacritty-b16fe1259cebcd6adb4bc92f7025beb696412b89.zip |
Reset blinking on search bindings in Vi mode
The Vi cursor is used as the current match indicator, however when
it's blinking during search jumps the current match is invisible.
Fixes #5934.
Diffstat (limited to 'alacritty/src/input.rs')
-rw-r--r-- | alacritty/src/input.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index 8572e1ab..89f04c0c 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -181,6 +181,8 @@ impl<T: EventListener> Execute<T> for Action { ctx.display().vi_highlighted_hint = hint; }, Action::Vi(ViAction::SearchNext) => { + ctx.on_typing_start(); + let terminal = ctx.terminal(); let direction = ctx.search_direction(); let vi_point = terminal.vi_mode_cursor.point; @@ -195,6 +197,8 @@ impl<T: EventListener> Execute<T> for Action { } }, Action::Vi(ViAction::SearchPrevious) => { + ctx.on_typing_start(); + let terminal = ctx.terminal(); let direction = ctx.search_direction().opposite(); let vi_point = terminal.vi_mode_cursor.point; |