Skip to content

Fix regression on cursor controls at last column

Luis Javier Merino requested to merge ninjalj/konsole:work/ninjalj/nowrap into master

Commit 8de0e6c7 mistakenly removed code to cancel the pending wrap flag (which in konsole is implemented as having the cursor one past the width of the screen) before the cursor controls CUU, CUD, CUB and BS.

While the behavior may seem counter-intuitive (specially BS and CUB, where printf "A\bB" at the last column results in BA), this is the behavior of VT100, xterm (without reverse-wraparound mode), and, most importantly, is expected by ncurses.

CCBUG: 399615

Merge request reports