From 25f04b06ad8e756460e908974ff2b9ff36905966 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 25 Jan 2020 19:50:23 +0100 Subject: [PATCH] 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. --- Libraries/LibVT/Terminal.cpp | 3 +-- 1 file changed, 1 insertion(+), 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(); }