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

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



On Fri, 10 Aug 2018 09:26:17 +0200
Guillaume Chazarain <guichaz@xxxxxxxxx> wrote:

> This commit[1] discussed here[2] breaks line editing when the prompt
> spans multiple lines, that happens for me since I include the full
> CWD in the prompt. See [3] for a demo. In the first "echo", the "j"
> is not visible in the command line and then when I try to edit the
> command line by adding a space, the command line does not match
> what's executed.
> 
> This is on Debian amd64, using gnome-terminal 3.26.0.

The problem with this is all terminals are a bit different in generally
undetectable ways and off-by-one errors are endemic.  Zsh is
particularly sensitive as not many other tools have multiline effects
without taking over the output of the entire screen.

I think I replied to a previous report saying about the best we could
do to fix generally was add a user control, though I'm not sure what
for that would take --- it would just have to be "suck it and see"
but it's an obscure thing to have to look for.

pws
 
> [1]
> https://sourceforge.net/p/zsh/code/ci/d8d9fee137a5aa2cf9bf8314b06895bfc2a05518/
> [2] http://www.zsh.org/mla/workers/2018/msg00091.html
> [3] https://gfycat.com/DecimalAdmiredJumpingbean
> 



Messages sorted by: Reverse Date, Date, Thread, Author