Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'zle redisplay' bug in 5.3?
- X-seq: zsh-users 22331
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Jan Larres <jan@xxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: 'zle redisplay' bug in 5.3?
- Date: Thu, 5 Jan 2017 01:09:14 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=TMmuWy9cB/d4eRfl7zpRogkatYSHJ+m6C5Oa2BCgaB4=; b=xGycKWTN0jNESFRB2sU0/C1aES1rzg+EoSkm18mLwMuOwUn9Epfs+qIhGbbkvLpqOy JOzi5Y+vrrztobr597tsGPBDtBxUN0MPvUj/1dqK35slzeC/sp8TtpFao9x/nGMnPnLU SLShAYPu3UY1KCx+BBs/1jkcn0Eplp+QRJhwTYCvHQKOLfm+WlCETT3D0QwnubTF5CjH Q1xrPnyHGAxLpB637iJcjVd4GawBgQ6Vd2GRygtmvRXpiR6pW/u7zCqdIoXiRB+xcgJz sE2lMS517fSvpHcEwrJchYZyyMP1630MFsVZmlhw2MV7ofybHe7vJ8ZRNey0VgOEhml1 fYUA==
- In-reply-to: <20170105030137.v4tzweda6pxyqnrq@majutsushi.net>
- 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
- References: <20170105030137.v4tzweda6pxyqnrq@majutsushi.net>
On Jan 5, 4:01pm, Jan Larres wrote:
}
} expand-or-complete-with-dots() {
} echo -ne "\e[31m......\e[0m"
} zle expand-or-complete
} zle redisplay
} }
Hmm. Indeed, with multi-line prompts, invoking redisplay immediately
after a completion menu is displayed will move the cursor upward as
many extra lines as the prompt is tall but then does not finish the
repainting of the prompt, leaving the cursor in the wrong place.
You don't even need compinit, just do:
% PS1=$':first line\n'"$PS1"
:first line
% ls <TAB>
:first line
% ls <M-x redisplay><RET>
and you'll observe zle get confused.
This is from workers/38048 ... where I asked for additional feedback
and got none ... discussion starts in users/21315.
I suspect something is different about the complist module vs. plain
completion menu and the change in 38048 does not account for the
latter.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author