1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-23 10:10:08 +00:00

chore: auto format code

This commit is contained in:
tw93
2026-02-28 11:03:16 +08:00
parent 1be71edc9d
commit 7d70889ad4
21 changed files with 145 additions and 128 deletions

View File

@@ -159,7 +159,7 @@ paginated_multi_select() {
# Count selections for header display
local selected_count=0
for ((i = 0; i < total_items; i++)); do
[[ ${selected[i]} == true ]] && ((selected_count++))
[[ ${selected[i]} == true ]] && ((selected_count++)) || true
done
# Header
@@ -247,9 +247,9 @@ paginated_multi_select() {
[[ $visible_count -gt $items_per_page ]] && visible_count=$items_per_page
if [[ $cursor_pos -lt $((visible_count - 1)) ]]; then
((cursor_pos++))
((cursor_pos++)) || true
elif [[ $((top_index + visible_count)) -lt $total_items ]]; then
((top_index++))
((top_index++)) || true
visible_count=$((total_items - top_index))
[[ $visible_count -gt $items_per_page ]] && visible_count=$items_per_page
if [[ $cursor_pos -ge $visible_count ]]; then