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.

terminal: Clear hovered link when no target found (#47134)

Xiaobo Liu66e8889c3bc9
diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs
index c8db9d9e653..0dcbfecb5af 100644
--- a/crates/terminal/src/terminal.rs
+++ b/crates/terminal/src/terminal.rs
@@ -1181,6 +1181,7 @@ impl Terminal {
self.process_hyperlink(hyperlink, *open, cx);
}
None => {
+ self.last_content.last_hovered_word = None;
cx.emit(Event::NewNavigationTarget(None));
}
}