mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Always notify when receiving buffer operations
We had changed it to only emit a notification when the buffer was actually edited, but we also want to notify when we receive non-edit operations, such as a selection update.
This commit is contained in:
parent
3228a55329
commit
f59be5fecf
1 changed files with 3 additions and 0 deletions
|
@ -1299,6 +1299,9 @@ impl Buffer {
|
|||
let old_version = self.version.clone();
|
||||
self.text.apply_ops(ops)?;
|
||||
self.did_edit(old_version, was_dirty, cx);
|
||||
// Notify independently of whether the buffer was edited as the operations could include a
|
||||
// selection update.
|
||||
cx.notify();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue