diff options
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 7d812116..af9d0414 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -436,7 +436,7 @@ impl Component for EditorView { // mode => write!(stdout, "\x1B[2 q"), // }; let view = editor.view(); - let cursor = view.doc.state.selection().cursor(); + let cursor = view.doc.selection().cursor(); let mut pos = view .screen_coords_at_pos(view.doc.text().slice(..), cursor) |