Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "off by one fix in multiple prompts" breaks multiline prompt



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