Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 0/1] prompt: Fix an off-by-one in the overf check in countpromt.
- X-seq: zsh-workers 42286
- From: dana <dana@xxxxxxx>
- To: warepire.ml@xxxxxxxxx
- Subject: Re: [PATCH 0/1] prompt: Fix an off-by-one in the overf check in countpromt.
- Date: Mon, 15 Jan 2018 05:07:39 -0600
- Cc: zsh-workers@xxxxxxx, Warepire <Warepire@xxxxxxxxxxxxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0MbvNVjuoyuXT64Gq1azV7y1QT4Z5IG6iNHBkc5wcDo=; b=loj8OYs7yy80SjLa5TP0cX44jyNNEIjHENhcmhseApWWnuDIpwW1BVcHxobvgfeAj7 4v2cvl9p0UJwLK0CCkW+XOLCz2YoCUQGvpAaMJlh+ynvli6lOrnNmHyqWqIoG8rU+BN1 N+zRiiusQKRSvr/vtE0CFJTZIwCczqlzImFfXIOW1dzQ8mG3pIYNUmDt2ABUgbHLSQG1 /sz+WnZUJAF72b/hxn1udPpRPVruItrupXofkEt2bbN6M+4rLUODc2IQx4fepb/UaMZZ 8AAWAdx3U30jNnzDyFpXBHicsEIYmfndxc/6rorp10xHqkz23ty6jV2QUmBHZMy9+G9p JVww==
- In-reply-to: <20180115103558.1258-1-warepire.ml@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180115103558.1258-1-warepire.ml@gmail.com>
On 15 Jan 2018, at 04:35, warepire.ml@xxxxxxxxx wrote:
>Additionally to the commit message: I have only managed to test this
>for my own use-cases, which is a very narrow subset of tests.
FYI, if it's any help, i tested this in the following, too:
* Terminal.app
* iTerm2
* Alacritty
I used a multi-line prompt where the top line had a length of COLUMNS, COLUMNS +
1, or COLUMNS - 1. I tried both with single-byte characters only and with mixed
single/multi-byte characters.
Replication:
% zle-line-init() zle reset-prompt
% zle -N zle-line-init
% PROMPT=${(l<$COLUMNS><abc>):-}$'\n%~ %# '
abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc
~ % echo foo
Current behaviour: The echo output is swallowed up by the next prompt.
Patched behaviour: The echo output remains unmolested.
PS: When i was testing it i had changed the comparison in both places; as
mentioned, the patch as submitted only changes the first one.
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author