From dd749bb2846584aa20078cfa2aea4fe18678c12c Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 7 Sep 2020 17:08:28 +0900 Subject: Expand transaction API. --- helix-term/src/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term') 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(); -- cgit v1.2.3-70-g09d2