diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-25 19:50:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-25 19:50:23 +0100 |
commit | 25f04b06ad8e756460e908974ff2b9ff36905966 (patch) | |
tree | 4e4e85c3c5b8d2b7ccefed2768f3c052bcb2c2e9 /Libraries/LibVT | |
parent | 20e41ab381d71b88db979560b55f8e2190ad7990 (diff) | |
download | serenity-25f04b06ad8e756460e908974ff2b9ff36905966.zip |
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.
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r-- | Libraries/LibVT/Terminal.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp index cd7ee9d1b3..8da29d730c 100644 --- a/Libraries/LibVT/Terminal.cpp +++ b/Libraries/LibVT/Terminal.cpp @@ -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(); } |