On 8/9/17 10:30 PM, Leon Klingele wrote: > 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
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 redraw the current line with \c-l and see if that helps. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/