aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-21 00:58:50 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-21 00:58:50 +0300
commit611dd73ca2ee6098511cc25aa396cee04aba3d09 (patch)
tree9c2365f7ad7fa4cf1de43f7277aeaa17f68bb51b /internal
parent4b451fbc8aa91f0d2b2cc839ff1529a35cc95bec (diff)
wizard: record instant_prompt and transient_prompt options
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/wizard.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 15b2eab7..0020a336 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1261,9 +1261,9 @@ function ask_instant_prompt() {
case $key in
q) quit;;
r) return 1;;
- 1) instant_prompt=off; break;;
- 2) instant_prompt=quiet; break;;
- 3) instant_prompt=verbose; break;;
+ 1) instant_prompt=off; options+=instant_prompt=off; break;;
+ 2) instant_prompt=quiet; options+=instant_prompt=quiet; break;;
+ 3) instant_prompt=verbose; options+=instant_prompt=verbose; break;;
esac
done
}
@@ -1313,7 +1313,7 @@ function ask_transient_prompt() {
case $key in
q) quit;;
r) return 1;;
- y) transient_prompt=1; break;;
+ y) transient_prompt=1; options+=transient_prompt; break;;
n) transient_prompt=0; break;;
esac
done