keys.c: K_BACKSPACE (127) is a non printable character.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1021 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Sander van Dijk 2014-09-12 20:23:20 +00:00
parent f44d44d419
commit 1e522abb2d

View file

@ -451,7 +451,7 @@ void Char_Console (int key)
size_t len;
char *workline = key_lines[edit_line];
if (key < 32 || key > 127)
if (key < 32 || key > 126)
return; // non printable
if (key_linepos < MAXCMDLINE-1)
@ -539,7 +539,7 @@ void Key_Message (int key)
void Char_Message (int key)
{
if (key < 32 || key > 127)
if (key < 32 || key > 126)
return; // non printable
if (chat_bufferlen == sizeof(chat_buffer) - 1)