zsh-workers
 help / color / mirror / code / Atom feed
From: sergio <mailbox@sergio.spb.ru>
To: zsh-workers@zsh.org
Subject: PATCH: zcalc prompt fix
Date: Wed, 06 Jan 2010 21:57:12 +0300	[thread overview]
Message-ID: <4B44DD08.7040700@sergio.spb.ru> (raw)

Hello.

There are problems when using color in ZCALCPROMPT.
This is simple fix.

--- /usr/share/zsh/functions/Misc/zcalc 2009-12-28 06:57:20.000000000 +0300
+++ zcalc       2010-01-06 14:55:15.000000000 +0300
@@ -152,7 +152,7 @@
  done

  psvar[1]=$num
-while vared -cehp "${(%)ZCALCPROMPT}" line; do
+while vared -cehp "${ZCALCPROMPT}" line; do
    [[ -z $line ]] && break
    # special cases
    # Set default base if `[#16]' or `[##16]' etc. on its own.

--
sergio.


             reply	other threads:[~2010-01-06 18:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-06 18:57 sergio [this message]
2010-01-07 21:33 ` Peter Stephenson
2010-01-07 23:11   ` sergio
2010-01-08  0:15     ` Richard Hartmann
2010-01-08  1:00       ` sergio
2010-01-08  9:21         ` Richard Hartmann
2010-01-08  9:28     ` Peter Stephenson
2010-06-13 23:21       ` sergio
2010-06-13 23:54         ` Mikael Magnusson
2010-06-14 11:11           ` sergio
2010-06-13 23:22       ` sergio

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=4B44DD08.7040700@sergio.spb.ru \
    --to=mailbox@sergio.spb.ru \
    --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).