diff --git a/crates/editor/src/multi_buffer.rs b/crates/editor/src/multi_buffer.rs index 52785a12027a4f57840e5310c6bfd651f69a1fa0..1dffed7739238aecf3a781c29ccfa055d77149c6 100644 --- a/crates/editor/src/multi_buffer.rs +++ b/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();