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

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 );
}
}