mirror of
https://github.com/zed-industries/zed.git
synced 2026-07-09 16:00:35 +00:00
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:
parent
4d6762ad6b
commit
0bc9c99f00
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue