zsh-users
 help / color / mirror / code / Atom feed
From: "Jesper Nygårds" <jesper.nygards@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Possible bug on reset-prompt
Date: Sun, 19 Mar 2017 12:34:15 +0100	[thread overview]
Message-ID: <CABZhJg9ua0-mGX5QtDU65635fomj-UGYA4t7wBsimKK+h=w-8g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

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.

             reply	other threads:[~2017-03-19 11:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-19 11:34 Jesper Nygårds [this message]
2017-03-19 16:24 ` Bart Schaefer
2017-03-19 20:29   ` Jesper Nygårds

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='CABZhJg9ua0-mGX5QtDU65635fomj-UGYA4t7wBsimKK+h=w-8g@mail.gmail.com' \
    --to=jesper.nygards@gmail.com \
    --cc=zsh-users@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).