Skip to content

Commit dd5df01

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 78d3151 commit dd5df01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helix-term/src/ui/editor.rs

+4
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,10 @@ impl EditorView {
850850
cxt.editor.autoinfo = self.keymaps.sticky().map(|node| node.infobox());
851851

852852
let mut execute_command = |command: &commands::MappableCommand| {
853+
let doc = doc_mut!(cxt.editor);
854+
let view = view_mut!(cxt.editor);
855+
doc.append_changes_to_history(view);
856+
853857
command.execute(cxt);
854858
helix_event::dispatch(PostCommand { command, cx: cxt });
855859

0 commit comments

Comments
 (0)