mirror of
https://github.com/typst/typst
synced 2025-06-28 08:12:53 +08:00
Fix hovering over comments
This commit is contained in:
parent
e724d04253
commit
b0f87077cc
@ -30,6 +30,7 @@ description: |
|
|||||||
[`location`]($func/locate) type
|
[`location`]($func/locate) type
|
||||||
- Added symbols for double, triple, and quadruple dot accent
|
- Added symbols for double, triple, and quadruple dot accent
|
||||||
- Added smart quotes for Norwegian Bokmål
|
- Added smart quotes for Norwegian Bokmål
|
||||||
|
- Fixed hovering over comments in web app
|
||||||
|
|
||||||
## March 21, 2023
|
## March 21, 2023
|
||||||
- Reference and bibliography management
|
- Reference and bibliography management
|
||||||
|
@ -21,6 +21,9 @@ pub fn tooltip(
|
|||||||
cursor: usize,
|
cursor: usize,
|
||||||
) -> Option<Tooltip> {
|
) -> Option<Tooltip> {
|
||||||
let leaf = LinkedNode::new(source.root()).leaf_at(cursor)?;
|
let leaf = LinkedNode::new(source.root()).leaf_at(cursor)?;
|
||||||
|
if leaf.kind().is_trivia() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
named_param_tooltip(world, &leaf)
|
named_param_tooltip(world, &leaf)
|
||||||
.or_else(|| font_tooltip(world, &leaf))
|
.or_else(|| font_tooltip(world, &leaf))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user