mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-02 16:33:05 +00:00
Forward notifications from Buffer
in MultiBuffer
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
437145afbe
commit
59121a238a
1 changed files with 1 additions and 0 deletions
|
@ -527,6 +527,7 @@ impl MultiBuffer {
|
||||||
self.sync(cx);
|
self.sync(cx);
|
||||||
|
|
||||||
let buffer = props.buffer.clone();
|
let buffer = props.buffer.clone();
|
||||||
|
cx.observe(&buffer, |_, _, cx| cx.notify()).detach();
|
||||||
cx.subscribe(&buffer, Self::on_buffer_event).detach();
|
cx.subscribe(&buffer, Self::on_buffer_event).detach();
|
||||||
|
|
||||||
let buffer_snapshot = buffer.read(cx).snapshot();
|
let buffer_snapshot = buffer.read(cx).snapshot();
|
||||||
|
|
Loading…
Reference in a new issue