Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Possible bug on reset-prompt
- X-seq: zsh-users 22585
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Possible bug on reset-prompt
- Date: Sun, 19 Mar 2017 12:34:15 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WxeFBEdB74VtPwbHvsgHZCMB7uroRguAz8Hidg2aeuo=; b=oqiK598sRvSB5lC6sk7tcegQovds5LzN5Nsgy8ixHmLHwcfwid04hEJPEMpfLCypoU MTYScq7T8hGkm29bI92Red1tyruDHOQtuXrArevzK6aW1c9gtDaJsSmmcCfEy4HNu0l7 BHYBPeVX/4EP5t/imsY9vo4Hca7DZsObYGt/yoRGCloxLg0ZHfz82SJlOld1H7FGAdl1 py3TTFNJbn+FYvnZ7UyBYgIPMMSxz71aJrWeihkxc9mi8NId1dQkRpVHUIOSAJMfWGRK 8GNMl0zwJ7pVPkw4HnPptsGNftPDHldin/LrMsvT9ntwJQpVp8y9cleSsBFp60YIP4tN tdjA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I'm using zsh 5.3.1
I might have found a minor bug when running reset-prompt with a two-line
prompt while displaying completion info. This is the complete .zshrc needed
to reproduce the problem:
# ==========================
zmodload -i zsh/sched
schedprompt() {
zle && zle reset-prompt
sched +5 schedprompt
}
schedprompt
autoload -U compinit
compinit
PS1=$'first\n> '
# ===========================
As you can see, it sets up the prompt to redraw every five seconds, and
also sets up a two-line prompt.
Now do this:
1) Type 'ls -<tab>' (the completion list for ls options is displayed)
2) Wait a few seconds (so that the prompt is redrawn)
3) Type any letters
You will observe that the letters typed in the last item are displayed one
line _above_ where it is supposed to be. A few seconds later, again when
the prompt is redrawn, the text is repositioned in the right place.
This seems like a bug to me.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author