@@ -1066,9 +1066,7 @@ fn test_session_restore_terminal_active_buffer() {
10661066fn test_keyboard_capture_toggle ( ) {
10671067 use tracing_subscriber:: EnvFilter ;
10681068 let _ = tracing_subscriber:: fmt ( )
1069- . with_env_filter (
1070- EnvFilter :: from_default_env ( ) . add_directive ( tracing:: Level :: TRACE . into ( ) ) ,
1071- )
1069+ . with_env_filter ( EnvFilter :: from_default_env ( ) . add_directive ( tracing:: Level :: TRACE . into ( ) ) )
10721070 . with_test_writer ( )
10731071 . try_init ( ) ;
10741072
@@ -1092,16 +1090,12 @@ fn test_keyboard_capture_toggle() {
10921090 harness. render ( ) . unwrap ( ) ;
10931091 harness. assert_screen_contains ( "Command:" ) ;
10941092 // Close the command palette
1095- harness
1096- . send_key ( KeyCode :: Esc , KeyModifiers :: NONE )
1097- . unwrap ( ) ;
1093+ harness. send_key ( KeyCode :: Esc , KeyModifiers :: NONE ) . unwrap ( ) ;
10981094 harness. render ( ) . unwrap ( ) ;
10991095
11001096 // Toggle keyboard capture ON with F9
11011097 tracing:: info!( "=== Toggling keyboard capture ON ===" ) ;
1102- harness
1103- . send_key ( KeyCode :: F ( 9 ) , KeyModifiers :: NONE )
1104- . unwrap ( ) ;
1098+ harness. send_key ( KeyCode :: F ( 9 ) , KeyModifiers :: NONE ) . unwrap ( ) ;
11051099 harness. render ( ) . unwrap ( ) ;
11061100
11071101 assert ! (
@@ -1123,9 +1117,7 @@ fn test_keyboard_capture_toggle() {
11231117
11241118 // Toggle keyboard capture OFF with F9
11251119 tracing:: info!( "=== Toggling keyboard capture OFF ===" ) ;
1126- harness
1127- . send_key ( KeyCode :: F ( 9 ) , KeyModifiers :: NONE )
1128- . unwrap ( ) ;
1120+ harness. send_key ( KeyCode :: F ( 9 ) , KeyModifiers :: NONE ) . unwrap ( ) ;
11291121 harness. render ( ) . unwrap ( ) ;
11301122
11311123 assert ! (
@@ -1218,9 +1210,7 @@ fn test_ui_bindings_blocked_with_keyboard_capture() {
12181210 let terminal_buffer = harness. editor ( ) . active_buffer_id ( ) ;
12191211
12201212 // Turn keyboard capture ON with F9
1221- harness
1222- . send_key ( KeyCode :: F ( 9 ) , KeyModifiers :: NONE )
1223- . unwrap ( ) ;
1213+ harness. send_key ( KeyCode :: F ( 9 ) , KeyModifiers :: NONE ) . unwrap ( ) ;
12241214 harness. render ( ) . unwrap ( ) ;
12251215 assert ! ( harness. editor( ) . is_keyboard_capture( ) ) ;
12261216
@@ -1365,8 +1355,8 @@ fn test_terminal_split_switch_exits_terminal_mode() {
13651355 harness
13661356 . send_mouse ( crossterm:: event:: MouseEvent {
13671357 kind : crossterm:: event:: MouseEventKind :: Down ( crossterm:: event:: MouseButton :: Left ) ,
1368- column : 10 , // column - well into left split
1369- row : 15 , // row - middle of content area
1358+ column : 10 , // column - well into left split
1359+ row : 15 , // row - middle of content area
13701360 modifiers : KeyModifiers :: NONE ,
13711361 } )
13721362 . unwrap ( ) ;
@@ -1471,7 +1461,9 @@ fn test_click_between_splits_terminal_focus() {
14711461 iteration
14721462 ) ;
14731463 assert ! (
1474- harness. editor( ) . is_terminal_buffer( harness. editor( ) . active_buffer_id( ) ) ,
1464+ harness
1465+ . editor( )
1466+ . is_terminal_buffer( harness. editor( ) . active_buffer_id( ) ) ,
14751467 "Iteration {}: Active buffer should be terminal before clicking file split" ,
14761468 iteration
14771469 ) ;
@@ -1496,7 +1488,9 @@ fn test_click_between_splits_terminal_focus() {
14961488
14971489 // Active buffer should be the file (non-terminal)
14981490 assert ! (
1499- !harness. editor( ) . is_terminal_buffer( harness. editor( ) . active_buffer_id( ) ) ,
1491+ !harness
1492+ . editor( )
1493+ . is_terminal_buffer( harness. editor( ) . active_buffer_id( ) ) ,
15001494 "Iteration {}: Active buffer should be file (non-terminal) after clicking file split" ,
15011495 iteration
15021496 ) ;
@@ -1521,7 +1515,9 @@ fn test_click_between_splits_terminal_focus() {
15211515
15221516 // Active buffer should be the terminal again
15231517 assert ! (
1524- harness. editor( ) . is_terminal_buffer( harness. editor( ) . active_buffer_id( ) ) ,
1518+ harness
1519+ . editor( )
1520+ . is_terminal_buffer( harness. editor( ) . active_buffer_id( ) ) ,
15251521 "Iteration {}: Active buffer should be terminal after clicking terminal split" ,
15261522 iteration
15271523 ) ;
0 commit comments