Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
swork1 committed Nov 16, 2022
1 parent fe11ae2 commit a752750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ impl MappableCommand {
jobs: cx.jobs,
scroll: None,
};

// We update any changes to history before calling the command
let (view, doc) = current!(cx.editor);
doc.append_changes_to_history(view.id);

if let Err(e) = (command.fun)(&mut cx, &args[..], PromptEvent::Validate) {
cx.editor.set_error(format!("{}", e));
}
Expand Down

0 comments on commit a752750

Please sign in to comment.