mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00: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();
|
m_client.beep();
|
||||||
return;
|
return;
|
||||||
case '\t': {
|
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]) {
|
if (m_horizontal_tabs[i]) {
|
||||||
set_cursor(m_cursor_row, i);
|
set_cursor(m_cursor_row, i);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue