mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05:00
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:
parent
20e41ab381
commit
25f04b06ad
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue