Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Invalidate hover state when a multibuffers paths change (#60443)

Lukas Wirth0bc9c99f00c9
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 87589880b53..a8ec9667ca8 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -9568,6 +9568,9 @@ impl Editor {
ranges,
path_key,
} => {
+ if let Some(hovered_link_state) = self.hovered_link_state.as_mut() {
+ hovered_link_state.symbol_range = None;
+ }
self.refresh_document_highlights(cx);
let buffer_id = buffer.read(cx).remote_id();
if self.buffer.read(cx).diff_for(buffer_id).is_none()