Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix writes from insert mode not properly updating the revision history
Browse files Browse the repository at this point in the history
omentic committed May 1, 2024
1 parent 3f73475 commit 12eec89
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
@@ -903,6 +903,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 });

0 comments on commit 12eec89

Please sign in to comment.