Fix bug with restarting configuration wizard

This commit is contained in:
Ilan Cosman 2021-07-17 14:33:31 -07:00
parent 3b237311b1
commit dc149a652c
3 changed files with 6 additions and 5 deletions

View File

@ -29,7 +29,7 @@ function _tide_sub_configure
end end
function _next_choice -a nextChoice function _next_choice -a nextChoice
set -q _tide_selected_option || return set -q _tide_selected_option || return 0
set -l cmd (string split '/' $nextChoice)[2] set -l cmd (string split '/' $nextChoice)[2]
$cmd $cmd
end end

View File

@ -9,11 +9,12 @@ function finish
_tide_menu _tide_menu
switch $_tide_selected_option switch $_tide_selected_option
case y case y
set -e _tide_selected_option # Skip through all the _next_choices
_tide_finish _tide_finish
set $_tide_left_prompt_display_var
set $_tide_right_prompt_display_var
clear
end end
__tide_on_fish_exit
clear
end end
function _tide_finish function _tide_finish

View File

@ -1,7 +1,7 @@
# RUN: %fish %s # RUN: %fish %s
function _jobs -a jobs function _jobs -a jobs
set -lx _tide_has_jobs $jobs set -lx _tide_jobs_status $jobs
_tide_decolor (_tide_item_jobs) _tide_decolor (_tide_item_jobs)
end end