Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zcalc prompt fix
- X-seq: zsh-workers 28035
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: sergio <mailbox@xxxxxxxxxxxxx>
- Subject: Re: PATCH: zcalc prompt fix
- Date: Mon, 14 Jun 2010 01:54:09 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zjJdAWXnDWbD2U/6solVm2eEdC8igwxlK6DWBwh9mY4=; b=Et0E9p43J/2nrAeAniTjjOg4LRaGvy0FBGLmrAcUOyQmUM05pJoFsXqw60CZVbDanl diw0rAP2u7K9qUNO9/U/HWiASsCLkS1D8jBweWl4eNYImyWJ9NPbNMkjEzJ3PBZ6DzPZ x/I9GLFo93+6gc/fV+dAeLO7ETW0rpd/CNIR0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RKECRiTXa8RPiWJAIBaWlXjMXwjk4kxeUtYGarxzRQEchtWEtr26KmFkKy4zac2CoT pP4ncQQVOX1pLO60KGo5QPaDPhzGDH/dyJfNKj4FLpAK8FxCXCo3lMMp7FcjNkXl2ttT rj8YfQ729c+lvzQqyA4NdeqIFDWo4i3MsSc8g=
- In-reply-to: <4C1567F9.6050406@xxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <4B44DD08.7040700@xxxxxxxxxxxxx> <20100107213326.582fb96c@pws-pc> <4B466A0F.9080109@xxxxxxxxxxxxx> <20100108092847.4aefd31d@news01> <4C1567F9.6050406@xxxxxxxxxxxxx>
That's not very surprising considering 4.3.10 was released before the fix.
If you want debian to backport fixes, maybe you should talk to them?
On 14 June 2010 01:21, sergio <mailbox@xxxxxxxxxxxxx> wrote:
> 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.
>
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author