Fix scrolling with selection outside of vimode

This commit is contained in:
Christian Duerr 2020-03-19 00:30:30 +00:00 committed by GitHub
parent 1a8cd172e5
commit 1ddd3118dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}
}