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

Fixes a panic when multibuffer paths change under a cursor hover
Fixes ZED-9W1
Closes FR-112

Release Notes:

- N/A or Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth 2026-07-09 11:20:36 +02:00 committed by GitHub
parent 4d6762ad6b
commit 0bc9c99f00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()