mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
fix the case when the expansion is both an exact match and a sub-string
This commit is contained in:
parent
e3c38e7774
commit
bb084d5f14
2 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue