From 3bc8f52d582cf088394c62789bb499493d1f1126 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Fri, 22 Jan 2021 17:28:48 -0800 Subject: [PATCH] Fix quit bug in wizard --- functions/_tide_sub_configure.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/_tide_sub_configure.fish b/functions/_tide_sub_configure.fish index 3689458..ac404f6 100644 --- a/functions/_tide_sub_configure.fish +++ b/functions/_tide_sub_configure.fish @@ -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