on master help sign in
Fix unwrap error when undo after `shell_append_output` (#2625)
commitfa2eeccc573cd985b428d337294a7171a1ba35b5 authorAndrey Tkachenko <andrey@aidev.ru> dateTue 31 May 2022, 18:08 (4 years ago) parentfc8c488
1 file changed+1
helix-term/src/commands.rs+1
helix-term/src/commands.rs+1
@@ -4430,6 +4430,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
44304430 if behavior != &ShellBehavior::Ignore {
44314431 let transaction = Transaction::change(doc.text(), changes.into_iter());
44324432 doc.apply(&transaction, view.id);
4433+ doc.append_changes_to_history(view.id);
44334434 }
44344435
44354436 // after replace cursor may be out of bounds, do this to