aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/editor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 7d28b62c..f761a546 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -850,6 +850,10 @@ impl EditorView {
cxt.editor.autoinfo = self.keymaps.sticky().map(|node| node.infobox());
let mut execute_command = |command: &commands::MappableCommand| {
+ let doc = doc_mut!(cxt.editor);
+ let view = view_mut!(cxt.editor);
+ doc.append_changes_to_history(view);
+
command.execute(cxt);
helix_event::dispatch(PostCommand { command, cx: cxt });