Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: adam2 prompt theme broken



On Dec 12, 10:21am, Bart Schaefer wrote:
}
} The promptsubst option is getting turned on and left that way by some
} part of the preview system, so it tries to interpret the backtick.

A couple of new things prompt_preview_theme needs to keep track of, so
they aren't left set after the theme is previewed.  Any more I haven't
thought of?

Index: Functions/Prompts/promptinit
===================================================================
retrieving revision 1.7
diff -c -r1.7 promptinit
--- promptinit	21 Dec 2010 16:41:15 -0000	1.7
+++ promptinit	13 Dec 2011 16:21:08 -0000
@@ -180,7 +180,8 @@
   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]'"


-- 
Barton E. Schaefer



Messages sorted by: Reverse Date, Date, Thread, Author