mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
30020: prevent prompt_opts and zle_highlight from leaking out of
prompt_preview_theme
This commit is contained in:
parent
3f98949ca8
commit
c33f3b0747
1 changed files with 2 additions and 1 deletions
|
@ -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]'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue