fix the case when the expansion is both an exact match and a sub-string

This commit is contained in:
Bill Currie 2001-07-06 19:47:44 +00:00
parent e3c38e7774
commit bb084d5f14
2 changed files with 2 additions and 2 deletions

View file

@ -655,7 +655,7 @@ Con_CompleteCommandLine (void)
key_lines[edit_line][1] = '/'; key_lines[edit_line][1] = '/';
strncpy(key_lines[edit_line] + 2, cmd, cmd_len); strncpy(key_lines[edit_line] + 2, cmd, cmd_len);
key_linepos = cmd_len + 2; key_linepos = cmd_len + 2;
if (!cmd[cmd_len]) { if (c + v + a == 1) {
key_lines[edit_line][key_linepos] = ' '; key_lines[edit_line][key_linepos] = ' ';
key_linepos++; key_linepos++;
} }

View file

@ -655,7 +655,7 @@ Con_CompleteCommandLine (void)
key_lines[edit_line][1] = '/'; key_lines[edit_line][1] = '/';
strncpy(key_lines[edit_line] + 2, cmd, cmd_len); strncpy(key_lines[edit_line] + 2, cmd, cmd_len);
key_linepos = cmd_len + 2; key_linepos = cmd_len + 2;
if (!cmd[cmd_len]) { if (c + v + a == 1) {
key_lines[edit_line][key_linepos] = ' '; key_lines[edit_line][key_linepos] = ' ';
key_linepos++; key_linepos++;
} }