From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@sunsite.dk
Subject: 4.3.0-dev-2 BUG: negative cursor position
Date: Mon, 12 Dec 2005 23:14:05 +0900 [thread overview]
Message-ID: <a06001005bfc334dcc101@kba.biglobe.ne.jp> (raw)
Hi zsh-workers,
Is this the right place to report a zsh bug?
I tried 4.3.0-dev-2 with --enable-zsh-debug.
old-zsh% /usr/local/bin/zsh -f
new-zsh% bindkey -v
new-zsh% <ESC>kj
Here, <ESC> is to go into the vi-command mode.
Then I hit 'k' to go up in history stack; it worked as expected.
Then I hit 'j' to go down in the stack, but I get the following message:
BUG: negative cursor position
With gdb, I found that zlecs becomes negative at line 674 of zle_hist.c.
Replacing
if (invicmdmode())
by
if (zlecs > findbol() && invicmdmode())
"apparently" fixed the problems but I know NOTHING about the zsh source code.
next reply other threads:[~2005-12-12 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-12 14:14 Jun T. [this message]
2005-12-12 18:46 ` Wayne Davison
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=a06001005bfc334dcc101@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@sunsite.dk \
/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).