Skip to content

Commit

Permalink
Only clear the compose when we might have a compose
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Dec 3, 2024
1 parent 5c91807 commit 2fa89cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions masonry/src/widget/text_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,7 @@ impl<const EDITABLE: bool> TextArea<EDITABLE> {
// preedit will show up again when the platform updates it.
if this.widget.editor.is_composing() {
let (fctx, lctx) = this.ctx.text_contexts();
this.widget
.editor
.transact(fctx, lctx, |txn| txn.clear_compose());
this.widget.editor.driver(fctx, lctx).clear_compose();
}
this.widget.editor.set_text(new_text);

Expand Down

0 comments on commit 2fa89cb

Please sign in to comment.