mirror of
https://github.com/alacritty/alacritty
synced 2024-10-02 22:14:28 +00:00
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.
This commit is contained in:
parent
e7bb6c2ea7
commit
b16fe1259c
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue