diff options
author | Blaž Hrastnik | 2020-09-07 08:08:28 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-09-07 08:08:28 +0000 |
commit | dd749bb2846584aa20078cfa2aea4fe18678c12c (patch) | |
tree | 8ae7048e4247a9f11087230dabe16c4b45914a85 /helix-term | |
parent | 4e349add60db745ebf459bb97b77031d3d9b6678 (diff) |
Expand transaction API.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/editor.rs | 4 |
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(); |