on master help sign in
Correctly position the real terminal cursor.
a014787Blaž Hrastnik
helix-term/src/ui/editor.rs+2−2
@@ -348,8 +348,8 @@ impl Component for EditorView {
348 let mut pos = view
348 let mut pos = view
349 .screen_coords_at_pos(&view.doc.text().slice(..), cursor)
349 .screen_coords_at_pos(&view.doc.text().slice(..), cursor)
350 .expect("Cursor is out of bounds.");
350 .expect("Cursor is out of bounds.");
351− pos.col += area.x as usize + OFFSET as usize;
351+ pos.col += view.area.x as usize + area.x as usize + OFFSET as usize;
352− pos.row += area.y as usize;
352+ pos.row += view.area.y as usize + area.y as usize;
353 Some(pos)
353 Some(pos)
354 }
354 }
355}
355}