bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Line wrapping issues


From: Leon Klingele
Subject: Line wrapping issues
Date: Thu, 10 Aug 2017 04:30:54 +0200

I'm experiencing line wrapping issues when using bash with fzf[1].
The issue is described in [2] and it looks like it is not caused by fzf
but instead by bash itself.

For the sake of completeness, here are the steps to reproduce:

1. Use bash with fzf, this requires you to install fzf. See [3].
2. Do an echo "abc abc abc abc abc abc abc abc abc abc abc abc abc abc
abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc" (so
you have that command in your bash history)
3. export PS1="abc abc abc abc abc abc abc abc abc abc abc abc abc abc
abc"
4. Activate fzf's reverse-i-search (Ctrl + r) (you need to have
sourc'ed fzf's $HOME/.fzf.bash file)
5. Select the echo "abc .." line, press enter
6. Bash prompt is wrapped incorrectly. After pressing enter in the last
step, the cursor is placed at the very end of the line (right after the
closing "), however there is more text on the right side of the cursor
(after EOL). See this screencast[4].

Is this problem caused by bash?

[1]: https://github.com/junegunn/fzf
[2]: https://github.com/junegunn/fzf/issues/994
[3]: https://github.com/junegunn/fzf#installation
[4]: https://git.io/v7MCY

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]