From: Jan Larres <jan@majutsushi.net>
To: zsh-users@zsh.org
Subject: 'zle redisplay' bug in 5.3?
Date: Thu, 5 Jan 2017 16:01:37 +1300 [thread overview]
Message-ID: <20170105030137.v4tzweda6pxyqnrq@majutsushi.net> (raw)
Hi,
I have this function in my zshrc:
expand-or-complete-with-dots() {
echo -ne "\e[31m......\e[0m"
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
This shows a few dots after the position where I pressed TAB to indicate that
the completion is working. This is helpful if the completion takes a bit
longer so I know that I did press the key correctly and I just have to wait a
bit. The 'zle redisplay' after the completion function is then supposed to
redraw the prompt as it was before inserting the dots.
After upgrading to 5.3 I ran into an issue, though. I use a multi-line prompt,
and now whenever I press TAB the 'zle redisplay' erases the prompt and puts
the cursor on the first line of the prompt, but at the correct column, while
the completion is active. Only after inserting something from the menu does
the prompt get redrawn correctly.
I didn't find anything in the changelog and incompatibilities lists, so my
assumption would be that this is a bug.
In case it is relevant, here is the rest of my completion config:
https://github.com/majutsushi/etc/blob/master/zsh/zsh/zshrc.d/20_completion
-Jan
--
-[ OpenPGP key ID: 00A0FD5F ]-
Fantasy is an exercise bicycle for the mind. It might not take you anywhere,
but it tones up the muscles that can.
-- Terry Pratchett
next reply other threads:[~2017-01-05 3:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 3:01 Jan Larres [this message]
2017-01-05 9:09 ` Bart Schaefer
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=20170105030137.v4tzweda6pxyqnrq@majutsushi.net \
--to=jan@majutsushi.net \
--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).