From 72e8a53046345b08295fb2118525d32600c5fa58 Mon Sep 17 00:00:00 2001 From: lewa_j Date: Tue, 13 Jan 2026 03:22:04 +0300 Subject: [PATCH] engine: Fix input_completion buffer comparison Fixes: 4b771701 ("engine: add con_showcompletion feature from FTEQW") --- engine/client/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/console.c b/engine/client/console.c index 256812e4..7d657180 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -1712,7 +1712,7 @@ static void Con_DrawInput( int lines ) } // Con_CompleteCommand destroys the buffer. Need to figure out how to make it append only - if( con.input_completion.buffer > len && !Q_strncmp( con.input.buffer, con.input_completion.buffer, len )) + if( Q_strlen(con.input_completion.buffer) > len && !Q_strncmp( con.input.buffer, con.input_completion.buffer, len )) { con.input_completion.scroll = len; Field_DrawInputLine( con.curFont->charWidths[' ']*2 + x, y, &con.input_completion, 128, false );