mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Terminal: Ensure a \t always advances by at least one column
This commit is contained in:
parent
3824f572ef
commit
053419dc3c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue