1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

47867: Fix RPROMPT typo in prompinit

This commit is contained in:
Arseny Maslennikov 2021-02-19 18:38:09 -06:00 committed by dana
parent 6bef719302
commit 5c60ec46ec
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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