On 10/28/22 8:21 AM, Albert Vaca Cintora wrote:
Machine: All archs
OS: All OSes
Bash Version: All versions since I have memory

Description:
         When there's leftover output before the prompt (ie: when the
previous command output doesn't end in a new line), editing a
multi-line command from history doesn't correctly display what you
edit.

As I'm sure you'll hear again, readline assumes that it knows where the
physical cursor is on the line, and to assure this assumes it starts with
the cursor in column 0. The redisplay code assumes this. There is no
portable way for readline to determine the physical cursor location, so
it has to make assumptions.

There are various imperfect workarounds, but the easiest one is to hit
return.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to