Do not pass text size to Preedit::new

This commit is contained in:
rhysd 2025-02-06 09:57:01 +09:00
parent fcdf53afde
commit cf851e133a
3 changed files with 12 additions and 8 deletions

View file

@ -754,7 +754,9 @@ where
Update::InputMethod(update) => match update {
Ime::Toggle(is_open) => {
state.preedit = is_open.then(|| {
input_method::Preedit::new(self.text_size)
let mut preedit = input_method::Preedit::new();
preedit.text_size = self.text_size;
preedit
});
shell.request_redraw();