Skip to content

Commit

Permalink
Fix unwrap error when undo after shell_append_output (#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreytkachenko authored May 31, 2022
1 parent fc8c488 commit fa2eecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4430,6 +4430,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
if behavior != &ShellBehavior::Ignore {
let transaction = Transaction::change(doc.text(), changes.into_iter());
doc.apply(&transaction, view.id);
doc.append_changes_to_history(view.id);
}

// after replace cursor may be out of bounds, do this to
Expand Down

0 comments on commit fa2eecc

Please sign in to comment.