aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-03-25 15:02:44 +0300
committerGitHub <noreply@github.com>2022-03-25 15:02:44 +0300
commitb16fe1259cebcd6adb4bc92f7025beb696412b89 (patch)
tree405d828b00e82d90d8c2cec5d735463fa05e6db1
parente7bb6c2ea78b719dde491515698e5707a50773b2 (diff)
downloadalacritty-b16fe1259cebcd6adb4bc92f7025beb696412b89.tar.gz
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.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/input.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 47b5e433..228b3d8e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `font.glyph_offset` not live reloading
- Failure when running on 10-bit color system
- The colors being slightly different when using srgb displays on macOS
+- Vi cursor blinking not reset when navigating in search
## 0.10.1
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;