Fix updating spans cache for pre-edit content in window manager
This commit is contained in:
parent
f889008e21
commit
3fcc173c8e
1 changed files with 4 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue