summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-12-07 00:26:12 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-12-07 00:26:12 +0100
commita8c7b6ce868671b3a70ac640ae866744690712ca (patch)
tree205d1e9a3f7fbaf3a3e44a82ced9ed09ad269437
parent2850225587a091bb76575d3db9389d619c7963bc (diff)
downloadserenity-a8c7b6ce868671b3a70ac640ae866744690712ca.zip
VirtualConsole: The rightmost column is always a default horizontal tab.
-rw-r--r--Kernel/VirtualConsole.cpp2
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);