on master help sign in
Fix unwrap error when undo after `shell_append_output` (#2625)
fa2eeccAndrey Tkachenko
helix-term/src/commands.rs+1
@@ -4430,6 +4430,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
4430 if behavior != &ShellBehavior::Ignore {
4430 if behavior != &ShellBehavior::Ignore {
4431 let transaction = Transaction::change(doc.text(), changes.into_iter());
4431 let transaction = Transaction::change(doc.text(), changes.into_iter());
4432 doc.apply(&transaction, view.id);
4432 doc.apply(&transaction, view.id);
4433+ doc.append_changes_to_history(view.id);
4433 }
4434 }
4434
4435
4435 // after replace cursor may be out of bounds, do this to
4436 // after replace cursor may be out of bounds, do this to