@@ -906,7 +906,7 @@ impl Grid {
906906 mut new_cursor_y,
907907 mut saved_cursor_y_coordinates,
908908 new_cursor_x,
909- saved_cursor_x_coordinates
909+ saved_cursor_x_coordinates,
910910 ) = cursors;
911911
912912 let current_viewport_row_count = self . viewport . len ( ) ;
@@ -2144,7 +2144,8 @@ impl Perform for Grid {
21442144 fn print ( & mut self , c : char ) {
21452145 let c = self . cursor . charsets [ self . active_charset ] . map ( c) ;
21462146
2147- let terminal_character = TerminalCharacter :: new_styled ( c, self . cursor . pending_styles . clone ( ) ) ;
2147+ let terminal_character =
2148+ TerminalCharacter :: new_styled ( c, self . cursor . pending_styles . clone ( ) ) ;
21482149 self . set_preceding_character ( terminal_character. clone ( ) ) ;
21492150 self . add_character ( terminal_character) ;
21502151 }
@@ -2443,9 +2444,7 @@ impl Perform for Grid {
24432444 if intermediates. is_empty ( ) {
24442445 self . cursor
24452446 . pending_styles
2446- . update ( |styles| {
2447- styles. add_style_from_ansi_params ( & mut params_iter)
2448- } )
2447+ . update ( |styles| styles. add_style_from_ansi_params ( & mut params_iter) )
24492448 }
24502449 } else if c == 'C' || c == 'a' {
24512450 // move cursor forward
@@ -2456,9 +2455,9 @@ impl Perform for Grid {
24562455 if let Some ( clear_type) = params_iter. next ( ) . map ( |param| param[ 0 ] ) {
24572456 let mut char_to_replace = EMPTY_TERMINAL_CHARACTER ;
24582457 if let Some ( background_color) = self . cursor . pending_styles . background {
2459- char_to_replace. styles . update ( |styles| {
2460- styles . background = Some ( background_color )
2461- } ) ;
2458+ char_to_replace
2459+ . styles
2460+ . update ( |styles| styles . background = Some ( background_color ) ) ;
24622461 }
24632462 if clear_type == 0 {
24642463 self . replace_characters_in_line_after_cursor ( char_to_replace) ;
@@ -2472,9 +2471,9 @@ impl Perform for Grid {
24722471 // clear all (0 => below, 1 => above, 2 => all, 3 => saved)
24732472 let mut char_to_replace = EMPTY_TERMINAL_CHARACTER ;
24742473 if let Some ( background_color) = self . cursor . pending_styles . background {
2475- char_to_replace. styles . update ( |styles| {
2476- styles . background = Some ( background_color )
2477- } ) ;
2474+ char_to_replace
2475+ . styles
2476+ . update ( |styles| styles . background = Some ( background_color ) ) ;
24782477 }
24792478 if let Some ( clear_type) = params_iter. next ( ) . map ( |param| param[ 0 ] ) {
24802479 if clear_type == 0 {
0 commit comments