From: sergio <mailbox@sergio.spb.ru>
To: zsh-workers@zsh.org
Subject: Re: PATCH: zcalc prompt fix
Date: Fri, 08 Jan 2010 04:00:07 +0300 [thread overview]
Message-ID: <4B468397.4070209@sergio.spb.ru> (raw)
In-Reply-To: <2d460de71001071615h47ea843dx7b71da32a2b5d86a@mail.gmail.com>
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.
next prev parent reply other threads:[~2010-01-08 1:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-06 18:57 sergio
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 [this message]
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=4B468397.4070209@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).