summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-02-14 13:22:25 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-14 13:22:25 +0100
commita2b36e6551e29071f7dd115c7dda8ecd4ad0ca08 (patch)
tree21f11c978a82f348ae9446a4943f0d770ae690ee
parentf889008e21971b461ec7c54d9a7667a23f6ab35b (diff)
parent3fcc173c8ef4b1d8a51f385175c0af2e162a0218 (diff)
downloadiced-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.rs4
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));
}
}