Skip to content

Commit

Permalink
Fix writes from insert mode not properly updating the revision history
Browse files Browse the repository at this point in the history
  • Loading branch information
omentic committed May 1, 2024
1 parent 78d3151 commit dd5df01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down

0 comments on commit dd5df01

Please sign in to comment.