LibVT: Make backspace (BS) non-destructive

I did not realize this was a thing. This fixes an artifact in vttest.
This commit is contained in:
Andreas Kling 2020-01-25 20:39:23 +01:00
parent dca92af431
commit a3069b16fd
Notes: sideshowbarker 2024-07-19 09:49:39 +09:00

View File

@ -882,7 +882,6 @@ void Terminal::on_char(u8 ch)
case 8: // Backspace
if (m_cursor_column) {
set_cursor(m_cursor_row, m_cursor_column - 1);
put_character_at(m_cursor_row, m_cursor_column, ' ');
return;
}
return;