diff --git a/base/src/test/user_model/test_view.rs b/base/src/test/user_model/test_view.rs index 1ec665f..a1f208c 100644 --- a/base/src/test/user_model/test_view.rs +++ b/base/src/test/user_model/test_view.rs @@ -55,7 +55,7 @@ fn set_the_range_does_not_set_the_cell() { assert_eq!( model.set_selected_range(5, 4, 10, 6), Err( - "The selected cells is not in one of the corners. Row: '1' and row range '(5, 10)'" + "The selected cell is not in one of the corners. Row: '1' and row range '(5, 10)'" .to_string() ) ); diff --git a/base/src/user_model/ui.rs b/base/src/user_model/ui.rs index fd29995..e947aa7 100644 --- a/base/src/user_model/ui.rs +++ b/base/src/user_model/ui.rs @@ -163,7 +163,7 @@ impl UserModel { )); } } else { - // The selected cells must be on one of the corners of the selected range: + // The selected cell must be on one of the corners of the selected range: if selected_row != start_row && selected_row != end_row { return Err(format!( "The selected cell is not in one of the corners. Row: '{selected_row}' and row range '({start_row}, {end_row})'" @@ -214,7 +214,9 @@ impl UserModel { // full column selected, nothing to do return Ok(()); } - if ["ArrowRight", "ArrowLeft"].contains(&key) && column_start == 1 && column_end == LAST_COLUMN + if ["ArrowRight", "ArrowLeft"].contains(&key) + && column_start == 1 + && column_end == LAST_COLUMN { // full row selected, nothing to do return Ok(());