Merge pull request #2806 from rhysd/cache-preedit-spans

Fix updating spans cache for pre-edit content in window manager
This commit is contained in:
Héctor 2025-02-14 13:22:25 +01:00 committed by GitHub
commit a2b36e6551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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