Kernel: Fix framebuffer bounds checks

running yes and pressing ctrl+c paniced the kernel :nekocatwoah:
This commit is contained in:
2026-08-25 23:53:07 +03:00
parent 999b1a073e
commit 4495b81769
@@ -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();