aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorAndrey Tkachenko2022-05-31 14:08:16 +0000
committerGitHub2022-05-31 14:08:16 +0000
commitfa2eeccc573cd985b428d337294a7171a1ba35b5 (patch)
tree3534ced54df4a89375617131e262acdba5882d89 /helix-term/src
parentfc8c48832257672b92a1b3c08b79c6cbffad1761 (diff)
Fix unwrap error when undo after `shell_append_output` (#2625)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
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