on master help sign in
Fix cursor positioning on a scrolled buffer.
commitb7e1c0cf8253703a5eeb8453de23c8d0a6137ef1 authorBlaž Hrastnik <blaz@mxxn.io> dateSun 4 Oct 2020, 17:40 (6 years ago) parent226fa89
1 file changed+1−4
helix-term/src/editor.rs+1−4
helix-term/src/editor.rs+1−4
@@ -289,10 +289,7 @@ impl Editor {
289289
290290 execute!(
291291 stdout,
292− cursor::MoveTo(
293− pos.col as u16 + viewport.x,
294− pos.row as u16 - view.first_line + viewport.y,
295− )
292+ cursor::MoveTo(pos.col as u16 + viewport.x, pos.row as u16 + viewport.y,)
296293 );
297294 }
298295 None => (),