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 43289
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: "off by one fix in multiple prompts" breaks multiline prompt
- Date: Mon, 13 Aug 2018 14:45:37 -0700
- 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=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6KiJDEjBzbDtZkEJ3jtZDNN+0YdTI1YUDFQeHi/9mA4=; b=SoZUD3U0Z6gtlQl3/i+0ud+qqEuBew11jqPitNNt8FnkuTQvh4dAkG4VOsXkVsgwxq NEtmOVG+jA1d5FsgSIfmvBOBftY29TqBPYD3LSTWHV7OW+6YQiXqXevFoKN4/HOa1ftW /Vzaw9yTJrNn1c9qbuDnqADxDNay7AVABKPHg7joJ6Fy08q2JceRqpc0nUTXP8bn7mIq czfgYTzXdu6Qtk8+7ZD5Zi8DuIGzUmGe+dERqjA5f7xdltYnDcRnE1/pHn2Xe5IUEnRJ Lsn0ITGntQvWI6Tms6s7AVeKwLc4UhOOkk2pWeXuHBfcwQnnAzFtzipPY15DnqYH4jfW TIPg==
- In-reply-to: <383CC796-865C-4774-A9C2-AD44997784B4@dana.is>
- 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>
On Mon, Aug 13, 2018 at 2:29 PM, dana <dana@xxxxxxx> wrote:
>
> I think that was in fact the problem. So if we revert the previous change, and
> then add an additional check for a last-column new-line, we end up with
> something like the attached. This seems to fix both the original issue and the
> new one for me, but obviously further testing would be nice
There are terminals that immediately scroll upon a newline being
written after the last column, especially if it is the last column of
the last line (which is where the prompt most often is). So sometimes
a double-increment may be necessary, and its hard to tell when.
This is why for years we tried to limit everything to 1 column less
than the exact width.
Presumably ZLE_RPROMPT_INDENT=0 helps in that case?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author