On Sat, Jun 10, 2017 at 07:21:36PM +0200, Paul Peet wrote: > If I understand this correctly this prompt (see below) shouldn't > contain any invisible sequence, therefore it doesn't require the > wrapping with \[ and \]. > > PS1="\u@\h\$" > > So bash should be able to correctly calculate the prompt size and > such, but by resizing the window it still results in a corrupted > buffer. > > I've uploaded another gif which shows this: > https://media.giphy.com/media/xUA7biW8UtwYIU6ggg/giphy.gif
I can't reproduce this with: dualbus@debian:~/src/gnu/bash$ bash --version | head -n1 GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu) dualbus@debian:~/src/gnu/bash$ xterm -version XTerm(327) dualbus@debian:~/src/gnu/bash$ lsb_release -d Description: Debian GNU/Linux 9.0 (stretch) Can you reproduce the problem using a more recent version. Perphaps try the `devel' branch from git? <https://savannah.gnu.org/git/?group=bash> -- Eduardo Bustamante https://dualbus.me/