zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: adam2 prompt theme broken
Date: Tue, 13 Dec 2011 08:23:44 -0800	[thread overview]
Message-ID: <111213082344.ZM3389@torch.brasslantern.com> (raw)
In-Reply-To: <111212102145.ZM1937@torch.brasslantern.com>

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


      reply	other threads:[~2011-12-13 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12 16:55 Mikael Magnusson
2011-12-12 18:21 ` Bart Schaefer
2011-12-13 16:23   ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=111213082344.ZM3389@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).