Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "off by one fix in multiple prompts" breaks multiline prompt
- X-seq: zsh-workers 43290
- From: dana <dana@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: "off by one fix in multiple prompts" breaks multiline prompt
- Date: Mon, 13 Aug 2018 17:44:32 -0500
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, Guillaume Chazarain <guichaz@xxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>, Warepire - <warepire.ml@xxxxxxxxx>
- 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=taz2xBZVgUni69OiPkcQdSDiEoDDJaFRdZDuLVZK/PQ=; b=JNJDShVMPrGYyEHZEBR2JFn4jjjiszS5fOHOK7FyOBlXy86JuuxERoioLOLZI5DvaG WfXFHLXeisOnYFpHRDkUO7jNeuOyIVNAQdpu8ulq1fR0jEFNnZVv3IRWr+RHhY2vX2Rs XyRQpFj8It/ozuP5AUrG1whnm8NrBXZ07LNohPrm1GnM1U/hnlgOYRFRDf+Lpy5H9xSV tyaet79UAurectLQCYvTYV54V5TZrHz9RubL6a8iOBVPcYf1Ey/NmdUQU6/+orPIC7UC xLZtIHboqhopeMEpgIai3fESd/jyhT+v/VzcRbcAZ4QLvDu6s/Mx1i7qBqhwPOelbEOA KERg==
- In-reply-to: <CAH+w=7YdxsrwWdMtgtnvyojRae-m7g0BdawU9VUWgzC6shrk=Q@mail.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: <CGME20180810072702epcas5p4ecaa5cffa5dc7668e2b2aa3a30824f36@epcas5p4.samsung.com> <CAA879TMRSWDSkqHP206-JLaJ8F4U=18DYU1CpCwCQ4iWMu_4Tg@mail.gmail.com> <20180813084255eucas1p102bc21872ad72a2cd049d8d9db2f0e86~KZResIryo0309103091eucas1p10@eucas1p1.samsung.com> <CAA879TPfqJbR1vwYfbRTCWoqkC-iH7pXHSwGYUzqOj8CT95xPg@mail.gmail.com> <20180813113640eucas1p19d52c9c05089626f375a00c5115aef32~KbpML4Mzp0510505105eucas1p1P@eucas1p1.samsung.com> <CAA879TOk3wqsY96dipo=gvFeN0OXTC0ei9i0xRsSyYyVmFG2rg@mail.gmail.com> <20180813125810eucas1p181a58cb55dc815863d6d81e1cd629d71~KcwV9B7ZD1627716277eucas1p1o@eucas1p1.samsung.com> <3F00E10A-6A65-4201-A4E2-2A29929111C1@dana.is> <383CC796-865C-4774-A9C2-AD44997784B4@dana.is> <CAH+w=7YdxsrwWdMtgtnvyojRae-m7g0BdawU9VUWgzC6shrk=Q@mail.gmail.com>
On 13 Aug 2018, at 16:45, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>This is why for years we tried to limit everything to 1 column less
>than the exact width.
Oh, yeah :/
On 13 Aug 2018, at 16:45, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>Presumably ZLE_RPROMPT_INDENT=0 helps in that case?
As far as i can tell, in Apple Terminal...
... when the check is > (as it is in the repo now), setting it to 0 causes the
editor to get lost as soon as i go past the last column. I think that's the same
behaviour Warepire found (can't remember in which terminal, but not Apple's)
when testing that setting at your suggestion before.
... when the check is >= (as it was before the previous change), setting it to 0
makes no difference. In the case of the last line wrapping, it works as expected
either way, and in the case of a new-line after the last column, the prompt
swallows the preceding line of input either way.
The change from >= to > seems bogus to me now — it only works by accident in
that one case. As far as the new-line check, i'm not sure how to determine if
that's a good direction, besides just trying it in different terminals. I can do
that later if it's not completely disproven already.
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author