Fix unwrap error when undo after shell_append_output
(#2625)
This commit is contained in:
parent
fc8c488322
commit
fa2eeccc57
1 changed files with 1 additions and 0 deletions
|
@ -4430,6 +4430,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
|
||||||
if behavior != &ShellBehavior::Ignore {
|
if behavior != &ShellBehavior::Ignore {
|
||||||
let transaction = Transaction::change(doc.text(), changes.into_iter());
|
let transaction = Transaction::change(doc.text(), changes.into_iter());
|
||||||
doc.apply(&transaction, view.id);
|
doc.apply(&transaction, view.id);
|
||||||
|
doc.append_changes_to_history(view.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// after replace cursor may be out of bounds, do this to
|
// after replace cursor may be out of bounds, do this to
|
||||||
|
|
Loading…
Add table
Reference in a new issue