mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
zed2: Store constructed terminal tooltip (#3566)
Allows the terminal to actually render its hyperlink tooltip Release Notes: - N/A
This commit is contained in:
commit
ad05f22256
@ -469,6 +469,7 @@ impl TerminalElement {
|
||||
.size_full()
|
||||
.id("terminal-element")
|
||||
.tooltip(move |cx| Tooltip::text(hovered_word.word.clone(), cx))
|
||||
.into_any_element()
|
||||
});
|
||||
|
||||
let TerminalContent {
|
||||
@ -570,7 +571,7 @@ impl TerminalElement {
|
||||
relative_highlighted_ranges,
|
||||
mode: *mode,
|
||||
display_offset: *display_offset,
|
||||
hyperlink_tooltip: None, // todo!(tooltips)
|
||||
hyperlink_tooltip,
|
||||
gutter,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user