fix: Fix empty lines for switch and checkbox

This commit is contained in:
Timo Reymann
2023-02-15 18:49:27 +01:00
committed by GitHub
parent 294cfb1b58
commit dd3f163e27
+2 -2
View File
@@ -122,7 +122,7 @@ list() {
local opts=("${@:2}") local opts=("${@:2}")
local opts_count=$(($# -1)) local opts_count=$(($# -1))
_new_line_foreach_item "${opts[*]}" _new_line_foreach_item "${opts[@]}"
# determine current screen position for overwriting the options # determine current screen position for overwriting the options
local lastrow; lastrow=$(_get_cursor_row) local lastrow; lastrow=$(_get_cursor_row)
@@ -178,7 +178,7 @@ checkbox() {
_prompt_text "$1" _prompt_text "$1"
local opts; opts=("${@:2}") local opts; opts=("${@:2}")
local opts_count; opts_count=$(($# -1)) local opts_count; opts_count=$(($# -1))
_new_line_foreach_item "${opts[*]}" _new_line_foreach_item "${opts[@]}"
# determine current screen position for overwriting the options # determine current screen position for overwriting the options
local lastrow; lastrow=$(_get_cursor_row) local lastrow; lastrow=$(_get_cursor_row)