mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 18:05:13 +00:00
Well-structured output
This commit is contained in:
@@ -262,6 +262,14 @@ EOF
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ ${#selected_indices[@]} -eq 0 ]]; then
|
||||
local default_idx=$((top_index + cursor_pos))
|
||||
if [[ $default_idx -ge 0 && $default_idx -lt $total_items ]]; then
|
||||
selected[default_idx]=true
|
||||
selected_indices=("$default_idx")
|
||||
fi
|
||||
fi
|
||||
|
||||
local final_result=""
|
||||
if [[ ${#selected_indices[@]} -gt 0 ]]; then
|
||||
local IFS=','
|
||||
|
||||
Reference in New Issue
Block a user