Fix scrolling with selection outside of vimode
This commit is contained in:
parent
1a8cd172e5
commit
1ddd3118dd
|
@ -635,9 +635,11 @@ impl<'a, T: EventListener, A: ActionContext<T>> Processor<'a, T, A> {
|
||||||
term.vi_mode_cursor.point.col = absolute.col;
|
term.vi_mode_cursor.point.col = absolute.col;
|
||||||
|
|
||||||
// Update selection
|
// Update selection
|
||||||
let point = term.vi_mode_cursor.point;
|
if term.mode().contains(TermMode::VI) {
|
||||||
if !self.ctx.selection_is_empty() {
|
let point = term.vi_mode_cursor.point;
|
||||||
self.ctx.update_selection(point, Side::Right);
|
if !self.ctx.selection_is_empty() {
|
||||||
|
self.ctx.update_selection(point, Side::Right);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue