aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-21 01:15:34 +0000
committerNathan Vegdahl2021-07-21 01:15:34 +0000
commitc848ed7abc7605c1bb1c6c98dfac23cadcb9e439 (patch)
treee9b9f40a74180de5ab1f3d21dfc5a9ebe3b310d8 /helix-term/src
parentd5534a6d10dacf6fc48e4891781038be278ca744 (diff)
Fixes for misc bugs with view movement.
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 72462741..0ea78f6b 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -917,7 +917,7 @@ fn scroll(cx: &mut Context, offset: usize, direction: Direction) {
.min(last_line.saturating_sub(scrolloff));
let text = doc.text().slice(..);
- let pos = pos_at_coords(text, Position::new(line, cursor.col)); // this func will properly truncate to line end
+ let pos = pos_at_coords(text, Position::new(line, cursor.col), true); // this func will properly truncate to line end
// TODO: only manipulate main selection
doc.set_selection(view.id, Selection::point(pos));