diff --git a/crates/ui-egui/src/tools/type_tool/controls.rs b/crates/ui-egui/src/tools/type_tool/controls.rs index 71cb9215080..363f0bf70e5 100644 --- a/crates/ui-egui/src/tools/type_tool/controls.rs +++ b/crates/ui-egui/src/tools/type_tool/controls.rs @@ -194,11 +194,7 @@ fn editor_rect(app: &mut PhotocraftApp, view: &craft::behavior::CanvasView, id: /// Use the language shown for the edit's caret or selection. Other languages keep the English marks. fn smart_quote_style(app: &PhotocraftApp) -> QuoteStyle { let german = super::styles_at(app).is_some_and(|(style, _)| { - style - .language - .as_deref() - .and_then(|tag| tag.split(['-', '_']).next()) - .is_some_and(|language| language.eq_ignore_ascii_case("de")) + style.language.as_deref().and_then(|tag| tag.split(['-', '_']).next()).is_some_and(|language| language.eq_ignore_ascii_case("de")) }); if german { QuoteStyle { apostrophe: QuoteStyle::GERMAN.single.1, ..QuoteStyle::GERMAN } } else { QuoteStyle::ENGLISH } }