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

Re: PATCH: zcalc prompt fix



Hello.

This bug still presents in 4.3.10-13 in debian.

> 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.

On 01/08/2010 12:28 PM, Peter Stephenson wrote:
On Fri, 08 Jan 2010 02:11:11 +0300
sergio<mailbox@xxxxxxxxxxxxx>  wrote:
-p for vared indicates, that the string will be taken as the prompt, and
it doesn't need the prompt expansion flag (%).

Ah, right, vared -p obeys the PROMPTPERCENT option so we don't need the
(%) in any case.

--
sergio.



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