Skip to content
  • Luis Javier Merino's avatar
    Fix regression on cursor controls at last column · c099e0f2
    Luis Javier Merino authored and Tomaz  Canabrava's avatar Tomaz Canabrava committed
    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
    c099e0f2