Don't automatically append a space when results are from a custom completion handler

This commit is contained in:
Brian Koropoff 2007-03-27 09:41:04 +00:00 committed by Jeff Teunissen
parent 20422ddf04
commit 82e732b052

View file

@ -170,7 +170,7 @@ Con_BasicCompleteCommandLine (inputline_t *il)
il->lines[il->edit_line][1] = '/';
strncpy(il->lines[il->edit_line] + 2, overwrite, strlen(overwrite));
il->linepos = strlen(overwrite) + 2;
if (c + v + o == 1 && overwrite[strlen(overwrite)-1] != '/') {
if (c + v == 1 && !o) {
il->lines[il->edit_line][il->linepos] = ' ';
il->linepos++;
}