mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
Fix unwrap error when undo after shell_append_output
(#2625)
This commit is contained in:
parent
fc8c488322
commit
fa2eeccc57
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user