LibVT: Don't go into "stomp" state after moving the cursor

The curious "stomp" state occurs when you type your way all the way
over to the right side of the terminal buffer, and we "stomp" once on
the very last column, before jumping to the next line.

We should never go into "stomp" state in response to programmatically
setting the cursor position. This fixes a small artifact in vttest.
This commit is contained in:
Andreas Kling 2020-01-25 19:50:23 +01:00
parent 20e41ab381
commit 25f04b06ad

View file

@ -750,8 +750,7 @@ void Terminal::set_cursor(unsigned a_row, unsigned a_column)
invalidate_cursor();
m_cursor_row = row;
m_cursor_column = column;
if (column != columns() - 1u)
m_stomp = false;
m_stomp = false;
invalidate_cursor();
}