fix: Fix empty lines for switch and checkbox
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user