summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar rhysd <lin90162@yahoo.co.jp>2025-02-14 18:02:46 +0900
committerLibravatar rhysd <lin90162@yahoo.co.jp>2025-02-14 19:13:55 +0900
commit3fcc173c8ef4b1d8a51f385175c0af2e162a0218 (patch)
tree21f11c978a82f348ae9446a4943f0d770ae690ee
parentf889008e21971b461ec7c54d9a7667a23f6ab35b (diff)
downloadiced-3fcc173c8ef4b1d8a51f385175c0af2e162a0218.tar.gz
iced-3fcc173c8ef4b1d8a51f385175c0af2e162a0218.tar.bz2
iced-3fcc173c8ef4b1d8a51f385175c0af2e162a0218.zip
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));
}
}