1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix(egui): a lint error

This commit is contained in:
umajho
2026-04-09 18:48:17 +08:00
parent c1962de280
commit b57b8dbbd1

View File

@@ -144,7 +144,7 @@ pub(crate) fn paint_ime_preedit_text_visuals(
return;
}
if cfg!(target_os = "windows")
if matches!(ui.ctx().os(), crate::os::OperatingSystem::Windows)
&& let Some(r) = &relative_active_range
&& r.start.index == 0
&& r.end.index == 0