From b16fe1259cebcd6adb4bc92f7025beb696412b89 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Fri, 25 Mar 2022 15:02:44 +0300 Subject: 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. --- alacritty/src/input.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'alacritty/src') 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 Execute 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 Execute 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; -- cgit