From f4419c7c7a4ee23189fd221347d78c9b515d5cbc Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 20 Dec 2025 14:18:53 +0000 Subject: [PATCH] chore: auto format code --- bin/uninstall.sh | 2 +- bin/uninstall_lib.sh | 2 +- lib/ui/app_selector.sh | 6 +++--- lib/ui/menu_paginated.sh | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/uninstall.sh b/bin/uninstall.sh index ba2f2aa..abbe52b 100755 --- a/bin/uninstall.sh +++ b/bin/uninstall.sh @@ -562,7 +562,7 @@ main() { # Calculate name width: use actual max, but constrain by terminal width # Fixed elements: "99. " (4) + " " (2) + " | Last: " (11) = 17 - local term_width=$(tput cols 2>/dev/null || echo 100) + local term_width=$(tput cols 2> /dev/null || echo 100) local available_for_name=$((term_width - 17 - max_size_width - max_last_width)) # Dynamic minimum for better spacing on wide terminals diff --git a/bin/uninstall_lib.sh b/bin/uninstall_lib.sh index 8531c54..eda7f65 100755 --- a/bin/uninstall_lib.sh +++ b/bin/uninstall_lib.sh @@ -561,7 +561,7 @@ main() { # Calculate name width: use actual max, but constrain by terminal width # Fixed elements: "99. " (4) + " " (2) + " | Last: " (11) = 17 - local term_width=$(tput cols 2>/dev/null || echo 100) + local term_width=$(tput cols 2> /dev/null || echo 100) local available_for_name=$((term_width - 17 - max_size_width - max_last_width)) # Dynamic minimum for better spacing on wide terminals diff --git a/lib/ui/app_selector.sh b/lib/ui/app_selector.sh index d73be87..5c5238a 100755 --- a/lib/ui/app_selector.sh +++ b/lib/ui/app_selector.sh @@ -99,11 +99,11 @@ select_apps_for_uninstall() { # Dynamic minimum: wider terminals get larger minimum for better spacing local min_width=18 if [[ $terminal_width -ge 120 ]]; then - min_width=48 # Wide terminals: very generous spacing + min_width=48 # Wide terminals: very generous spacing elif [[ $terminal_width -ge 100 ]]; then - min_width=38 # Medium-wide terminals: generous spacing + min_width=38 # Medium-wide terminals: generous spacing elif [[ $terminal_width -ge 80 ]]; then - min_width=25 # Standard terminals + min_width=25 # Standard terminals fi [[ $max_name_width -lt $min_width ]] && max_name_width=$min_width diff --git a/lib/ui/menu_paginated.sh b/lib/ui/menu_paginated.sh index 383e109..0444994 100755 --- a/lib/ui/menu_paginated.sh +++ b/lib/ui/menu_paginated.sh @@ -508,7 +508,7 @@ paginated_multi_select() { # Normal: show full controls (without O ↑/↓ to save space) # Dynamically reduce controls if they won't fit local term_width="${COLUMNS:-}" - [[ -z "$term_width" ]] && term_width=$(tput cols 2>/dev/null || echo 80) + [[ -z "$term_width" ]] && term_width=$(tput cols 2> /dev/null || echo 80) # Helper to calculate display length without ANSI codes _calc_len() {