diff --git a/src/widgets/text_box.rs b/src/widgets/text_box.rs
index cb741e1c8f6c9ac072385b478f5a711bc8878545..f6a157f6da1750f8d0ec74e4c7bf08e11009da67 100644
--- a/src/widgets/text_box.rs
+++ b/src/widgets/text_box.rs
@@ -131,12 +131,7 @@ pub fn text_box_render(
 
                 state.cursor_position = state.graphemes.len();
 
-                set_new_cursor_position(
-                    &mut state,
-                    &font_assets,
-                    &font_mapping,
-                    &style_font,
-                );
+                set_new_cursor_position(&mut state, &font_assets, &font_mapping, &style_font);
             }
         }