On 2/2/18 8:57 PM, Kieran Grant wrote: > On 03/02/18 00:25, Chet Ramey wrote: >> I can't reproduce it on Mac OS X or Red Hat, even when using the Debian >> prompt. What is your $PS1? (The value of `prompt' in the call to readline() >> in the trace looks kind of sketchy.) >> > > PS1=\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
Try the attached patch; it should fix it. Chet -- ``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/
*** ../bash-4.4.18/lib/readline/display.c 2016-07-28 14:49:33.000000000 -0400 --- lib/readline/display.c 2018-02-03 19:19:35.000000000 -0500 *************** *** 772,776 **** wadjust = (newlines == 0) ? prompt_invis_chars_first_line ! : ((newlines == prompt_lines_estimate) ? wrap_offset : prompt_invis_chars_first_line); /* fix from Darin Johnson <da...@acuson.com> for prompt string with --- 788,794 ---- wadjust = (newlines == 0) ? prompt_invis_chars_first_line ! : ((newlines == prompt_lines_estimate) ! ? (wrap_offset - prompt_invis_chars_first_line) ! : 0); /* fix from Darin Johnson <da...@acuson.com> for prompt string with