diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-07 00:26:12 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-07 00:26:12 +0100 |
commit | a8c7b6ce868671b3a70ac640ae866744690712ca (patch) | |
tree | 205d1e9a3f7fbaf3a3e44a82ced9ed09ad269437 | |
parent | 2850225587a091bb76575d3db9389d619c7963bc (diff) | |
download | serenity-a8c7b6ce868671b3a70ac640ae866744690712ca.zip |
VirtualConsole: The rightmost column is always a default horizontal tab.
-rw-r--r-- | Kernel/VirtualConsole.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/VirtualConsole.cpp b/Kernel/VirtualConsole.cpp index bedffad01b..7b0fe262a1 100644 --- a/Kernel/VirtualConsole.cpp +++ b/Kernel/VirtualConsole.cpp @@ -45,6 +45,8 @@ VirtualConsole::VirtualConsole(unsigned index, InitialContents initial_contents) m_horizontal_tabs = static_cast<byte*>(kmalloc(columns())); for (unsigned i = 0; i < columns(); ++i) m_horizontal_tabs[i] = (i % 8) == 0; + // Rightmost column is always last tab on line. + m_horizontal_tabs[columns() - 1] = 1; s_consoles[index] = this; m_buffer = (byte*)kmalloc_eternal(rows() * columns() * 2); |