fixed the incorrect backslash insertion on empty edit lines in the dedicated server consoles

This commit is contained in:
myT 2017-06-04 13:04:45 +02:00
parent 8b5728559b
commit 4c98469f3f
1 changed files with 1 additions and 1 deletions

View File

@ -2868,7 +2868,7 @@ void Field_AutoComplete( field_t *field, qbool insertBackslash )
field->cursor = max;
} else {
// the input line is pure whitespace so we rewrite it
Q_strncpyz ( field->buffer, "\\", sizeof( field->buffer ) );
Q_strncpyz ( field->buffer, insertBackslash ? "\\" : "", sizeof( field->buffer ) );
field->cursor = strlen( field->buffer );
}
}