From 1ddd3118ddce8295bac5faa14f4b28f5ba33445d Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 19 Mar 2020 00:30:30 +0000 Subject: [PATCH] Fix scrolling with selection outside of vimode --- alacritty/src/input.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index 937457c4..b9210393 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -635,9 +635,11 @@ impl<'a, T: EventListener, A: ActionContext> Processor<'a, T, A> { term.vi_mode_cursor.point.col = absolute.col; // Update selection - let point = term.vi_mode_cursor.point; - if !self.ctx.selection_is_empty() { - self.ctx.update_selection(point, Side::Right); + if term.mode().contains(TermMode::VI) { + let point = term.vi_mode_cursor.point; + if !self.ctx.selection_is_empty() { + self.ctx.update_selection(point, Side::Right); + } } }