mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-05 10:45:02 +03:00
Fix selection update in viless search
This commit is contained in:
1 parent
41127a1e72
commit
f608fece45
1 file changed
+5
@@ -402,6 +402,11 @@ impl<'a, N: Notify + 'a, T: EventListener> input::ActionContext<T> for ActionCon
|
||||
#[inline]
|
||||
fn push_search(&mut self, c: char) {
|
||||
if let Some(regex) = self.search_state.regex.as_mut() {
|
||||
// Prevent previous search selections from sticking around when not in vi mode.
|
||||
if !self.terminal.mode().contains(TermMode::VI) {
|
||||
self.terminal.selection = None;
|
||||
}
|
||||
|
||||
regex.push(c);
|
||||
self.update_search();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user