Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Multiline PROMPT eats line on zle redisplay (when first line is full-width)
- X-seq: zsh-workers 41053
- From: Ole Jørgen Brønner <olejorgenb@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Multiline PROMPT eats line on zle redisplay (when first line is full-width)
- Date: Sun, 7 May 2017 21:31:04 +0200
- 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=MGw2C+9oTj9aHQ4vXTSnqJdE1Z3RVgJoPQa0OhniL5o=; b=szrNRKj8+i29g1BqY/gxoGZpGkwTExZIULSJwlFnAd88J+vmBpGZYHNLgJxMfS/9Wh ythGDcSBAQtuJk6yTLjgmqfZd4dLMQgrk+q78SCvS4Bi48zkH00Zczn6AEYSy4jMVbw+ OTFQyPcHhc0QVlYiL5d75Dcfa6FALv+T6+PoZ+Y8Qj+v2gkAYU3b1D5betsf9IE3k2i9 bD1SGSsRTbwLEqiEKazoD507ja5GA9MwAzOCuQf8H78MOMresIxAO0IwuSkHWnmtVXei rZ9cIAf8v4sS/RPfAPY7yMvY0Xa/sbB1MaSNLFbUQ0q3VwiYmNKeIEzpkzccBhKRqp1s YAkQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
To reproduce:
PROMPT="${(l:$COLUMNS::-:)}
> "
function redisp { zle redisplay; }
zle -N redisp
bindkey "^Q" redisp
Press ctrl-q and the line above the prompt is gone
Use $COLUMNS - 1 instead and everything works fine.
Tested on aa8157b463c18489b378da322f46574bd9ab8dbb (May 1 2017) with `zsh -f`
Ole J (not subscribed so CC is appreciated)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author