From fa2eeccc573cd985b428d337294a7171a1ba35b5 Mon Sep 17 00:00:00 2001 From: Andrey Tkachenko Date: Tue, 31 May 2022 18:08:16 +0400 Subject: [PATCH] Fix unwrap error when undo after `shell_append_output` (#2625) --- helix-term/src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 8024e3f0..a692822f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -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