Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zcalc prompt fix
- X-seq: zsh-workers 27583
- From: sergio <mailbox@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: zcalc prompt fix
- Date: Fri, 08 Jan 2010 04:00:07 +0300
- In-reply-to: <2d460de71001071615h47ea843dx7b71da32a2b5d86a@xxxxxxxxxxxxxx>
- 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> <2d460de71001071615h47ea843dx7b71da32a2b5d86a@xxxxxxxxxxxxxx>
On 08.01.2010 03:15, Richard Hartmann wrote:
What line exactly? What do you do to trigger the bug?
Can you reproduce it with zsh -f, and if not, what do you
need to do so that you can reproduce it?
I thought it would be much easier.
This is very simple bug. It occurs due to the incorrect prompt length
calculations. It reproduces with zsh -f.
% zsh -f
% autoload zcalc
% ZCALCPROMPT="%F{red}%1v%f> "
% echo "$COLUMNS - `echo "${(%)ZCALCPROMPT}" | wc -c`" | bc
67
% zcalc
1> When you'll type 67'th character, prompt will disappear. It doesn't
scroll to the right, but overwrites. After this you will not possible to
edit beginning of the line anymore.
--
sergio.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author