diff options
author | 2025-02-14 13:22:25 +0100 | |
---|---|---|
committer | 2025-02-14 13:22:25 +0100 | |
commit | a2b36e6551e29071f7dd115c7dda8ecd4ad0ca08 (patch) | |
tree | 21f11c978a82f348ae9446a4943f0d770ae690ee | |
parent | f889008e21971b461ec7c54d9a7667a23f6ab35b (diff) | |
parent | 3fcc173c8ef4b1d8a51f385175c0af2e162a0218 (diff) | |
download | iced-a2b36e6551e29071f7dd115c7dda8ecd4ad0ca08.tar.gz iced-a2b36e6551e29071f7dd115c7dda8ecd4ad0ca08.tar.bz2 iced-a2b36e6551e29071f7dd115c7dda8ecd4ad0ca08.zip |
Merge pull request #2806 from rhysd/cache-preedit-spans
Fix updating spans cache for pre-edit content in window manager
-rw-r--r-- | winit/src/program/window_manager.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs index 27306439..139d787a 100644 --- a/winit/src/program/window_manager.rs +++ b/winit/src/program/window_manager.rs @@ -343,6 +343,10 @@ where shaping: text::Shaping::Advanced, wrapping: text::Wrapping::None, }); + + self.spans.clear(); + self.spans + .extend(spans.into_iter().map(text::Span::to_static)); } } |