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 Feb 25, 2024
1 parent 6db666f commit 3b2691b
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 @@ -834,6 +834,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 3b2691b

Please sign in to comment.