Fix quit bug in wizard

This commit is contained in:
Ilan Cosman 2021-01-22 17:28:48 -08:00
parent baa87d77b4
commit 3bc8f52d58

View File

@ -18,10 +18,12 @@ function _tide_sub_configure
test $fake_columns -gt 90 && set fake_columns 90
set -g fake_lines $LINES
set -g _tide_selected_option
_next_choice 'all/style'
end
function _next_choice -a nextChoice
set -q _tide_selected_option || return
set -l cmd (string split '/' $nextChoice)[2]
$cmd
end
@ -51,8 +53,6 @@ function _tide_menu
'(q) Quit and do nothing'\n
while true
set -e _tide_selected_option
set_color -o
read --prompt-str "Choice [$listWithSlashes/r/q] " input
set_color normal
@ -63,6 +63,7 @@ function _tide_menu
_next_choice 'all/style'
break
case q
set -e _tide_selected_option # Skip through all the _next_choices
set -e _tide_option_list
clear
break