From 1765f15059d56c00bc2d313730d070ae647e80aa Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 9 Jan 2023 05:13:45 +0000 Subject: [PATCH] Alt+tab was randomly registering as tab presses - explicitly ignore tab at the start of the input line so we don't end up with walls of console completion suggestions. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6328 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/keys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/keys.c b/engine/client/keys.c index e2d6a5c73..169b126f1 100644 --- a/engine/client/keys.c +++ b/engine/client/keys.c @@ -504,6 +504,8 @@ void CompleteCommand (qboolean force, int direction) cmd_completion_t *c; s = key_lines[edit_line]; + if (!*s) + return; if (*s == ' ' || *s == '\t') s++; if (*s == '\\' || *s == '/')