Forward notifications from `Buffer` in `MultiBuffer`

Antonio Scandurra and Nathan Sobo created

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Change summary

crates/editor/src/multi_buffer.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

crates/editor/src/multi_buffer.rs 🔗

@@ -527,6 +527,7 @@ impl MultiBuffer {
         self.sync(cx);
 
         let buffer = props.buffer.clone();
+        cx.observe(&buffer, |_, _, cx| cx.notify()).detach();
         cx.subscribe(&buffer, Self::on_buffer_event).detach();
 
         let buffer_snapshot = buffer.read(cx).snapshot();