* adam2 prompt theme broken
@ 2011-12-12 16:55 Mikael Magnusson
2011-12-12 18:21 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2011-12-12 16:55 UTC (permalink / raw)
To: zsh workers
Running prompt -p adam2 twice results in the error message
prompt_preview_theme:13: parse error
and after the first time, it has changed the command line to be bright
white. I have no idea how these bits work.
The theme itself also doesn't work for me, but it does work from zsh
-f. It overwrites the last line when writing a new prompt with my rc
loaded, but I'm not so interested in debugging it :).
--
Mikael Magnusson
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: adam2 prompt theme broken
2011-12-12 16:55 adam2 prompt theme broken Mikael Magnusson
@ 2011-12-12 18:21 ` Bart Schaefer
2011-12-13 16:23 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2011-12-12 18:21 UTC (permalink / raw)
To: zsh workers
On Dec 12, 5:55pm, Mikael Magnusson wrote:
} Subject: adam2 prompt theme broken
}
} Running prompt -p adam2 twice results in the error message
} prompt_preview_theme:13: parse error
It's this:
prompt_gfx_blc='\`'
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.
Haven't tracked further yet.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: adam2 prompt theme broken
2011-12-12 18:21 ` Bart Schaefer
@ 2011-12-13 16:23 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2011-12-13 16:23 UTC (permalink / raw)
To: zsh workers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-13 16:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-12 16:55 adam2 prompt theme broken Mikael Magnusson
2011-12-12 18:21 ` Bart Schaefer
2011-12-13 16:23 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).