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 => (),