Fix updating spans cache for pre-edit content in window manager

This commit is contained in:
rhysd 2025-02-14 18:02:46 +09:00
parent f889008e21
commit 3fcc173c8e

View file

@ -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));
}
}