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