aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/editor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/editor.rs')
-rw-r--r--helix-term/src/editor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs
index 4abc8477..6c0d5b49 100644
--- a/helix-term/src/editor.rs
+++ b/helix-term/src/editor.rs
@@ -87,7 +87,7 @@ impl Editor {
};
// render the cursor
- let pos = state.selection.primary().head;
+ let pos = state.selection.cursor();
let coords = coords_at_pos(&state.doc.slice(..), pos);
execute!(
stdout,
@@ -126,7 +126,7 @@ impl Editor {
KeyEvent {
code: KeyCode::Char(c),
..
- } => helix_core::commands::insert(state, c),
+ } => helix_core::commands::insert_char(state, c),
_ => (), // skip
}
self.render();