Fix hover tooltip in math

This commit is contained in:
Laurenz 2023-02-12 20:53:59 +01:00
parent b6ee82c7e8
commit 70c8a08905

View File

@ -38,7 +38,7 @@ fn expr_tooltip(world: &(dyn World + 'static), leaf: &LinkedNode) -> Option<Tool
} }
let expr = ancestor.cast::<ast::Expr>()?; let expr = ancestor.cast::<ast::Expr>()?;
if !expr.hashtag() { if !expr.hashtag() && !matches!(expr, ast::Expr::MathIdent(_)) {
return None; return None;
} }