on master help sign in
Correctly position the real terminal cursor.
commita014787ee8418e27a48d7614ccdb7f9769087606 authorBlaž Hrastnik <blaz@mxxn.io> dateThu 4 Feb 2021, 16:50 (6 years ago) parent446a7e5
1 file changed+2−2
helix-term/src/ui/editor.rs+2−2
helix-term/src/ui/editor.rs+2−2
@@ -348,8 +348,8 @@ impl Component for EditorView {
348348 let mut pos = view
349349 .screen_coords_at_pos(&view.doc.text().slice(..), cursor)
350350 .expect("Cursor is out of bounds.");
351− pos.col += area.x as usize + OFFSET as usize;
352− pos.row += area.y as usize;
351+ pos.col += view.area.x as usize + area.x as usize + OFFSET as usize;
352+ pos.row += view.area.y as usize + area.y as usize;
353353 Some(pos)
354354 }
355355}