diff options
author | Blaž Hrastnik | 2020-09-07 02:28:52 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-09-07 02:28:52 +0000 |
commit | 8b3e152126ec8f0e67dad378dc62c734ea97a4b0 (patch) | |
tree | 5109f5fb4a7709eafd2fb3b493c6e7d56e269e5a /helix-core/src/commands.rs | |
parent | 579b6899f1fe7f0a06857c4528f55f316e2975e9 (diff) |
cleanup: Make Buffer just a part of State.
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); } |