aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-04 08:40:16 +0000
committerBlaž Hrastnik2020-10-04 08:40:43 +0000
commitb7e1c0cf8253703a5eeb8453de23c8d0a6137ef1 (patch)
treec3b35bb0cd3e56a9cbbe2cb60437af1a1e2ed66a /helix-term
parent226fa89d461f0a537e2b3fe88a1f8eebad2fdb0d (diff)
Fix cursor positioning on a scrolled buffer.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/editor.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs
index a348aa6e..70b5758e 100644
--- a/helix-term/src/editor.rs
+++ b/helix-term/src/editor.rs
@@ -289,10 +289,7 @@ impl Editor {
execute!(
stdout,
- cursor::MoveTo(
- pos.col as u16 + viewport.x,
- pos.row as u16 - view.first_line + viewport.y,
- )
+ cursor::MoveTo(pos.col as u16 + viewport.x, pos.row as u16 + viewport.y,)
);
}
None => (),