Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- X-seq: zsh-workers 44322
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- Date: Sun, 19 May 2019 10:04:48 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J7jLml0Wu2TNkI3eQYqCiozclqysnBXvghWCK9J/08E=; b=VK43VZoMk/Z1nqwslfBN2tzpHCHJIA3ywTYcNwKbbqtKcRMxV8BR//ZOZwVX8aUdQP 75o8F26o0Vx5wSEMIzUWQftrB7l6KgiTHlvR02UPiFltapDyrqO5yQ1XuMUGEtmNf1Aj uvmXlRcR2HEFKYTF5KvYivWwqONyu2QycjjaXiTpuQVZwQpoiqsJfBVJoOvaSqHTf9bA ed2wmHaPND2fsF+cxBjqpItY8uf7ICY8TUv87VEmPWtOZSzwath8JrorbAqownjPIgyo O4HIU7u7FRMefgXUk/cUSaF7v1N1GxbkJRVs73wcN2Dclvr4Woe37jJiOIoYJn4qsoEK rwiA==
- In-reply-to: <CAN=4vMpx_B5TRNQzDAvBoTFszoKea2=uQr5xjd0vZVH6py+oVA@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: <CAN=4vMpx_B5TRNQzDAvBoTFszoKea2=uQr5xjd0vZVH6py+oVA@mail.gmail.com>
We constantly go around on this. If we un-break it for one terminal
type it breaks for another. It's an acknowledged problem that in some
cases you can't set ZLE_RPROMPT_INDENT=0, that's why the variable
exists in the first place; if it always worked to set it to zero we'd
remove it.
All your patch does is remove a test for the value of that variable.
A more correct change would be to add to the test condition a check
for whether placing a character in the rightmost column (or the
rightmost/bottom-most position) causes the terminal to auto-wrap (or
not) the cursor onto the next line. Unfortunately there's no way to
reliably determine that (e.g., there's no termcap/terminfo value that
reports it consistently).
What $ZSH_PATCHLEVEL were you testing against? There was a related
change committed only a month ago, and there has not been a release in
the meantime.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author