From dd3f163e276f7fb94492ffe2afc3dda43aa7b192 Mon Sep 17 00:00:00 2001 From: Timo Reymann Date: Wed, 15 Feb 2023 18:49:27 +0100 Subject: [PATCH] fix: Fix empty lines for switch and checkbox --- src/prompts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prompts.sh b/src/prompts.sh index 9772401..b6fcb01 100644 --- a/src/prompts.sh +++ b/src/prompts.sh @@ -122,7 +122,7 @@ list() { local opts=("${@:2}") local opts_count=$(($# -1)) - _new_line_foreach_item "${opts[*]}" + _new_line_foreach_item "${opts[@]}" # determine current screen position for overwriting the options local lastrow; lastrow=$(_get_cursor_row) @@ -178,7 +178,7 @@ checkbox() { _prompt_text "$1" local opts; opts=("${@:2}") local opts_count; opts_count=$(($# -1)) - _new_line_foreach_item "${opts[*]}" + _new_line_foreach_item "${opts[@]}" # determine current screen position for overwriting the options local lastrow; lastrow=$(_get_cursor_row)