diff options
author | Nathan Vegdahl | 2021-07-21 01:15:34 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-07-21 01:15:34 +0000 |
commit | c848ed7abc7605c1bb1c6c98dfac23cadcb9e439 (patch) | |
tree | e9b9f40a74180de5ab1f3d21dfc5a9ebe3b310d8 /helix-term | |
parent | d5534a6d10dacf6fc48e4891781038be278ca744 (diff) |
Fixes for misc bugs with view movement.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
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)); |