Terminal: Ensure a \t always advances by at least one column

This commit is contained in:
Sergey Bugaev 2019-09-17 21:44:52 +03:00 committed by Andreas Kling
parent 3824f572ef
commit 053419dc3c

View file

@ -799,7 +799,7 @@ void Terminal::on_char(u8 ch)
m_client.beep();
return;
case '\t': {
for (unsigned i = m_cursor_column; i < columns(); ++i) {
for (unsigned i = m_cursor_column + 1; i < columns(); ++i) {
if (m_horizontal_tabs[i]) {
set_cursor(m_cursor_row, i);
return;