From 89a4dc2ac2a751fdcae921997bb93a76f9b667f9 Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 13 Feb 2025 13:10:07 +0900 Subject: Clear pre-edit window state when pre-edit content is `None` --- winit/src/program/window_manager.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs index 4156e7c8..27306439 100644 --- a/winit/src/program/window_manager.rs +++ b/winit/src/program/window_manager.rs @@ -234,6 +234,8 @@ where self.preedit = Some(overlay); } + } else { + self.preedit = None; } } } -- cgit