diff options
author | Andrey Tkachenko | 2022-05-31 14:08:16 +0000 |
---|---|---|
committer | GitHub | 2022-05-31 14:08:16 +0000 |
commit | fa2eeccc573cd985b428d337294a7171a1ba35b5 (patch) | |
tree | 3534ced54df4a89375617131e262acdba5882d89 /helix-term/src | |
parent | fc8c48832257672b92a1b3c08b79c6cbffad1761 (diff) |
Fix unwrap error when undo after `shell_append_output` (#2625)
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 1 |
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 |