diff options
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/text_editor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 0094419b..79432fe9 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -687,8 +687,7 @@ impl Update { .. } if state.is_focused => { if let Some(text) = text { - if let Some(c) = - text.chars().filter(|c| !c.is_control()).next() + if let Some(c) = text.chars().find(|c| !c.is_control()) { return edit(Edit::Insert(c)); } |