Comment 0 for bug 1745271

Revision history for this message
Simon May (socob) wrote : Input prompt behaves incorrectly if working directory path spans two lines

1) The release of Ubuntu you are using: Ubuntu 17.10

2) The version of the package you are using: 3.24.2-0ubuntu4

3) What you expected to happen: The input prompt should behave the same, no matter what the working directory is.

4) What happened instead: The cursor starts overlapping the working directory text (see attached screenshot, which shows a 80×24 terminal window in a directory called “/home/test/01234567890123456789/01234567890123456789/a/01234567890123456789/01234567890123456789/01234567890123456789/01234567890123456789”).

On text input, the inputted text overwrites the working directory text. When pressing backspace, the entire second line is deleted (including the $ character). This makes using the history (up arrow) very confusing because afterwards, the actual input line characters do not seem to correspond to the displayed text anymore, i.e. characters inserted at a certain point are actually shifted in the resulting line, making it very difficult to properly type in commands.