From 60b7712ed664799c5848700a6efd599a4d30ee10 Mon Sep 17 00:00:00 2001 From: Marcus Minhorst Date: Mon, 15 Sep 2025 18:07:35 -0400 Subject: [PATCH] Clamp home key --- src/common/console/c_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/console/c_console.cpp b/src/common/console/c_console.cpp index 487312594..75ecb9094 100644 --- a/src/common/console/c_console.cpp +++ b/src/common/console/c_console.cpp @@ -863,7 +863,7 @@ static bool C_HandleKey (event_t *ev, FCommandBuffer &buffer) case GK_HOME: if (ev->data3 & GKM_CTRL) { // Move to top of console buffer - RowAdjust = total_lines; + RowAdjust = total_lines - page_height - 1; } else { // Move cursor to start of line