diff --git a/kernel/kernel/Terminal/FramebufferTerminal.cpp b/kernel/kernel/Terminal/FramebufferTerminal.cpp index d26e5e71..74c4e399 100644 --- a/kernel/kernel/Terminal/FramebufferTerminal.cpp +++ b/kernel/kernel/Terminal/FramebufferTerminal.cpp @@ -102,10 +102,9 @@ namespace Kernel void FramebufferTerminalDriver::show_cursor(bool use_data) { - // NOTE: cursor is allowed to be on width as scrolling only - // happens after character gets printed to next line - if (m_cursor_x == width()) + if (m_cursor_x == width() || m_cursor_y == height()) return; + ASSERT(m_cursor_x < width() && m_cursor_y < height()); if (!use_data) read_cursor();