diff options
Diffstat (limited to 'helix-core/src/commands.rs')
-rw-r--r-- | helix-core/src/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/commands.rs b/helix-core/src/commands.rs index a6b74449..70596045 100644 --- a/helix-core/src/commands.rs +++ b/helix-core/src/commands.rs @@ -65,6 +65,6 @@ pub fn insert(state: &mut State, c: char) { let pos = state.selection.primary().head; let changes = ChangeSet::insert(&state.doc, pos, c); // TODO: need to store history - changes.apply(state.contents_mut()); + changes.apply(&mut state.doc); state.selection = state.selection.clone().map(&changes); } |