https://bugs.kde.org/show_bug.cgi?id=397757
ninj...@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ninj...@gmail.com --- Comment #5 from ninj...@gmail.com --- (In reply to Per Drive from comment #4) > UP. > I have a related bug so instead of opening a new one, I'll try updating it > to give it visibility. And I think they have the same origin. > > To me the bug lies in the calculations of the prompt size as it incorporates > control characters which should not be taken into account. > > So, the way to reproduce it is way simpler than in the original submission: > > Step one: create a color prompt such as: > > PS1='${debian_chroot:+($debian_chroot)}\033[93m\u@\h:\w\033[0m > ' Terminal control sequences in PS1 should be enclosed between \[ and \], as in: PS1='${debian_chroot:+($debian_chroot)}\[\033[93m\]\u@\h:\w\[\033[0m\] > ' so bash can keep a correct idea of where the cursor is. See https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Controlling-the-Prompt -- You are receiving this mail because: You are watching all bug changes.