summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar rhysd <lin90162@yahoo.co.jp>2025-02-13 13:10:07 +0900
committerLibravatar rhysd <lin90162@yahoo.co.jp>2025-02-13 13:10:07 +0900
commit89a4dc2ac2a751fdcae921997bb93a76f9b667f9 (patch)
tree91d9d34c87796da424104c46705e9f1aceb69f92
parent88ffba4a3a4d10fa68e31f0a2d6137691a7735cb (diff)
downloadiced-89a4dc2ac2a751fdcae921997bb93a76f9b667f9.tar.gz
iced-89a4dc2ac2a751fdcae921997bb93a76f9b667f9.tar.bz2
iced-89a4dc2ac2a751fdcae921997bb93a76f9b667f9.zip
Clear pre-edit window state when pre-edit content is `None`
-rw-r--r--winit/src/program/window_manager.rs2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}