bug-bash
[Top][All Lists]
Advanced

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

Re: Line wrapping issues


From: Chet Ramey
Subject: Re: Line wrapping issues
Date: Mon, 21 Aug 2017 12:47:07 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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