diff --git a/crates/language/src/lib.rs b/crates/language/src/lib.rs index fd7f8d44b1..02744ceb79 100644 --- a/crates/language/src/lib.rs +++ b/crates/language/src/lib.rs @@ -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(()) }