Wait for additional edits before pushing transaction in remote buffer
This commit is contained in:
parent
d765e75bad
commit
924eb622ae
4 changed files with 41 additions and 1 deletions
|
@ -1910,6 +1910,8 @@ impl Buffer {
|
|||
);
|
||||
cx.spawn(|this, mut cx| async move {
|
||||
let edit_ids = apply_edits.await?;
|
||||
this.update(&mut cx, |this, _| this.text.wait_for_edits(&edit_ids))
|
||||
.await;
|
||||
if push_to_history {
|
||||
this.update(&mut cx, |this, _| {
|
||||
this.text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue