Skip to content

Commit

Permalink
Update spans cache for pre-edit in window manager
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Feb 14, 2025
1 parent f889008 commit acb1db2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions winit/src/program/window_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit acb1db2

Please sign in to comment.