Skip to content

Commit 10acdc4

Browse files
committed
Fix cargo fmt in settings TUI
1 parent 4a1e8b1 commit 10acdc4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/tui/settings.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,10 +905,7 @@ fn handle_editor_input(key: event::KeyEvent, state: &mut State) -> Action {
905905
}
906906
KeyCode::Up if shift && *ordered => {
907907
// Reorder: swap with previous checked item
908-
if items[*cursor].checked
909-
&& *cursor > 0
910-
&& items[*cursor - 1].checked
911-
{
908+
if items[*cursor].checked && *cursor > 0 && items[*cursor - 1].checked {
912909
items.swap(*cursor, *cursor - 1);
913910
*cursor -= 1;
914911
}

0 commit comments

Comments
 (0)