Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle .redisplay sometimes eating up a line
- X-seq: zsh-users 24065
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: zle .redisplay sometimes eating up a line
- Date: Mon, 15 Jul 2019 20:43:50 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=imEBkqCs3KeLLSj4nK20gAgpQlLSxRWr41chzeZAid4=; b=RIifZFYAwSFMVOxxglwMsleSd9/WzqTI3TJY+IrCxlBUly4GJsSKcpKp0+9l9VTrMs CotCznxTN3vyY+NzDW4eDTmoZIOPKAWaQalez9ltHX8pelpITrxC3v+7M7Y8RcXAg64T tQ45VDuE58oMu33jnXz6hYP7udyCmdjWrtLH4FYLXKSopzbEM46hNvhmSJswWHq+4Ggv 3BdAFBkdYh8Zh6gBnMJNQRE6qBNbSPSFnxDguWQM68RSmBIjSqVhXBwGmtOPY3YggCA4 TX79qiVaSO+72KWheyJ1oOsePY1J0xfLvrBAR0KL2OAY1KlFILsiAxvHPmfh+2uQN7/X Ycjg==
- In-reply-to: <CAKc7PVAaAVFROyM1k6w2x8HsBDcqYiqUk=1s_knJ0tAUOMpZFQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVD-7We+6JFGQOz2X+TunjWzdifc1i2BWZNd9yv8L94g=w@mail.gmail.com> <CAN=4vMp+e9bjzFN5Um8gL_z_mg61A0b1oKTXn3xqex8Rff2vJA@mail.gmail.com> <CAKc7PVAaAVFROyM1k6w2x8HsBDcqYiqUk=1s_knJ0tAUOMpZFQ@mail.gmail.com>
On Mon, Jul 15, 2019 at 8:31 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> > What's your $ZSH_PATCHLEVEL?
>
> zsh-5.7.1-101-g09385d3
Good. This rules out a few bugs fixed recently that affect lprompth.
> > Could you post self-contained instructions for reproducing this?
>
> The instructions will be not fully self-contained, as the issue
> reveals itself with 3 plugins being loaded:
>
> [...]
This is too much. The first thing anyone trying to debug this will
have to do is reduce the number of steps that are necessary to
reproduce this bug. If you do it, it makes it that much more likely
someone will care enough to fix the bug.
Since the prompt overflow bugs have been ruled out, the next most
common reason for the prompt to be redisplayed on the previous line is
when `redisplay` is called after a prior prompt change that wasn't
followed by `zle -R`. Here's a simple example:
1. Run `zsh -df`.
2. Paste this:
function reset() { zle .reset-prompt; zle .redisplay }
zle -N reset
bindkey '^T' reset
PROMPT=$'\n> '
3. Press Ctrl-T. Observe that prompt moves one line up.
The fix is to call `zle -R` before `zle .redisplay`.
I'm not saying this is the culprit of your problem but it might be.
It's hard to tell when the setup for reproducing it requires thousands
of lines of ZSH scripts.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author