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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user