From c33f3b07478307db0ff6ed7227d82a3454f9d851 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 13 Dec 2011 17:43:55 +0000 Subject: 30020: prevent prompt_opts and zle_highlight from leaking out of prompt_preview_theme --- Functions/Prompts/promptinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit index 0aa810236..b07eabb1f 100644 --- a/Functions/Prompts/promptinit +++ b/Functions/Prompts/promptinit @@ -180,7 +180,8 @@ prompt_preview_theme () { emulate -L zsh local -a psv; psv=($psvar); local -a +h psvar; psvar=($psv) # Ick local +h PS1=$PS1 PS2=$PS2 PS3=$PS3 PS4=$PS4 RPS1=$RPS1 - local precmd_functions preexec_functions + local precmd_functions preexec_functions prompt_opts + local -aLl +h zle_highlight print -n "$1 theme" (( $#* > 1 )) && print -n " with parameters \`$*[2,-1]'" -- cgit 1.4.1