summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Maslennikov <ar@cs.msu.ru>2021-02-19 18:38:09 -0600
committerdana <dana@dana.is>2021-02-19 18:39:22 -0600
commit5c60ec46ec087e7e58c8fc00c6821060e8caecb8 (patch)
tree2fe9d1b87626cfd1bb513aa64d3c8e2d8e0b7ac2
parent6bef719302d6db33c63fb6f2636986dff1941ac2 (diff)
downloadzsh-5c60ec46ec087e7e58c8fc00c6821060e8caecb8.tar.gz
zsh-5c60ec46ec087e7e58c8fc00c6821060e8caecb8.zip
47867: Fix RPROMPT typo in prompinit
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Prompts/promptinit4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8eaaee9d1..cee131eda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-02-19 dana <dana@dana.is>
+
+ * 47867: Arseny Maslennikov: Functions/Prompts/promptinit: Fix
+ RPROMPT typo
+
2021-02-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
* users/26509: Src/builtin.c: fc -L should ignore remote entries
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index e27b8779a..5e42ebdd3 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -49,7 +49,7 @@ prompt_preview_safely() {
# This handles all the stuff from the default :prompt-theme cleanup
local +h PS1=$PS1 PS2=$PS2 PS3=$PS3 PS4=$PS4 RPS1=$RPS1 RPS2=$RPS2
- local +h PROMPT=$PROMPT RPROMPT=$RPOMPT RPROMPT2=$RPROMPT2 PSVAR=$PSVAR
+ local +h PROMPT=$PROMPT RPROMPT=$RPROMPT RPROMPT2=$RPROMPT2 PSVAR=$PSVAR
local -a precmd_functions preexec_functions prompt_preview_cleanup
local -aLl +h zle_highlight
@@ -101,7 +101,7 @@ Use prompt -h <theme> for help on specific themes.'
if [[ -z "$prompt_theme[1]" ]]; then
# Not using a prompt theme; save settings
local +h PS1=$PS1 PS2=$PS2 PS3=$PS3 PS4=$PS4 RPS1=$RPS1 RPS2=$RPS2
- local +h PROMPT=$PROMPT RPROMPT=$RPOMPT RPROMPT2=$RPROMPT2 PSVAR=$PSVAR
+ local +h PROMPT=$PROMPT RPROMPT=$RPROMPT RPROMPT2=$RPROMPT2 PSVAR=$PSVAR
local -a precmd_functions preexec_functions
else
trap 'prompt_${prompt_theme[1]}_setup "${(@)prompt_theme[2,-1]}"' 0