Kernel/TTY: Don't flush dirty lines if VirtualConsole is not active

This commit is contained in:
Liav A 2021-05-20 22:08:48 +03:00 committed by Andreas Kling
parent 38ccdb02ce
commit 5f718c6b05

View file

@ -286,6 +286,8 @@ void VirtualConsole::emit_char(char ch)
void VirtualConsole::flush_dirty_lines()
{
if (!m_active)
return;
VERIFY(GraphicsManagement::is_initialized());
VERIFY(GraphicsManagement::the().console());
for (u16 visual_row = 0; visual_row < rows(); ++visual_row) {