diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-03-19 00:30:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 03:30:30 +0300 |
commit | 1ddd3118ddce8295bac5faa14f4b28f5ba33445d (patch) | |
tree | 242c716759c987aedfc449a6818833e22dd03611 | |
parent | 1a8cd172e520e493bacc9c6a2ae6f80de086eaa3 (diff) | |
download | alacritty-1ddd3118ddce8295bac5faa14f4b28f5ba33445d.tar.gz alacritty-1ddd3118ddce8295bac5faa14f4b28f5ba33445d.zip |
Fix scrolling with selection outside of vimode
-rw-r--r-- | alacritty/src/input.rs | 8 |
1 files 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<T>> 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); + } } } |