Oh, I forgot to include my bash version (installed with Homebrew):
$ echo $BASH_VERSION
4.4.12(1)-release
signature.asc
Description: Message signed with OpenPGP using GPGMail
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.
On 2017-08-14 Ángel wrote:
> I guess the sourced file corresponds to this script?
> https://github.com/junegunn/fzf/blob/master/shell/completion.bash
Yes.
On 2017-08-14 DJ Mills wrote:
> You can try shopt -s checkwinsize to see if that helps
checkwinsize is already enabled :/
How to debug this?
> you might try running your combination in something that stores
> all I/O
Awesome idea! I did record a session with 'script'.
Replay it as follows:
$ git clone
https://gist.github.com/leonklingele/e3e3754cc0362e0e982823709db032eb bash-fzf
$ cd $_
$ cat typescript
Now take a look at the second
> Please send your typescript to the list.
Here you go (see attachment).
> If these steps leave the cursor in a different position than readline
> expects it to be (before step 4), even the redraw-current-line at the
> end of the macro may not help. You could try replacing the key sequence
> to r
> That macro ends with \C-x\C-r
Actually it ends in \e^\er, it lands in the if-block for me:
https://github.com/junegunn/fzf/blob/55ee4186aa688e524e041971d588a6f002486deb/shell/key-bindings.bash#L83
Replacing \C-r with \C-l "solves" the issue, but again clears the
screen which I'd try to avoid.
I can provide a Docker image to reproduce the issue inside a container.
Is that something you'd prefer?
signature.asc
Description: Message signed with OpenPGP using GPGMail