Skip to content

Commit 12eec89

Browse files
committed
Fix writes from insert mode not properly updating the revision history
ref: helix-editor/helix#3501 ref: helix-editor/helix#6513 ref: helix-editor/helix#7226
1 parent 3f73475 commit 12eec89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helix-term/src/ui/editor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,10 @@ impl EditorView {
903903
cxt.editor.autoinfo = self.keymaps.sticky().map(|node| node.infobox());
904904

905905
let mut execute_command = |command: &commands::MappableCommand| {
906+
let doc = doc_mut!(cxt.editor);
907+
let view = view_mut!(cxt.editor);
908+
doc.append_changes_to_history(view);
909+
906910
command.execute(cxt);
907911
helix_event::dispatch(PostCommand { command, cx: cxt });
908912

0 commit comments

Comments
 (0)