about summary refs log tree commit diff
path: root/Functions/Prompts/promptinit
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-12-13 17:43:55 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-12-13 17:43:55 +0000
commitc33f3b07478307db0ff6ed7227d82a3454f9d851 (patch)
treea448705816fc889e89327ae50b735c5d60445ef7 /Functions/Prompts/promptinit
parent3f98949ca8915d2d9c095ccaa65b308ab502b6c6 (diff)
downloadzsh-c33f3b07478307db0ff6ed7227d82a3454f9d851.tar.gz
zsh-c33f3b07478307db0ff6ed7227d82a3454f9d851.tar.xz
zsh-c33f3b07478307db0ff6ed7227d82a3454f9d851.zip
30020: prevent prompt_opts and zle_highlight from leaking out of
prompt_preview_theme
Diffstat (limited to 'Functions/Prompts/promptinit')
-rw-r--r--Functions/Prompts/promptinit3
1 files changed, 2 insertions, 1 deletions
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]'"