mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
Terminal: Ensure a \t always advances by at least one column
This commit is contained in:
parent
3824f572ef
commit
053419dc3c
Notes:
sideshowbarker
2024-07-19 12:04:04 +09:00
Author: https://github.com/bugaevc
Commit: 053419dc3c
Pull-request: https://github.com/SerenityOS/serenity/pull/580
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
Add a link
Reference in a new issue