fixed folder adding space in autocom

This commit is contained in:
Olivier Gagnon 2021-10-15 18:33:27 -04:00
parent 34fa906013
commit d6ea9c55b1
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -215,7 +215,7 @@ export function TerminalInput({ terminal, router, player }: IProps): React.React
let newValue = tabCompletion(command, arg, allPos, value); let newValue = tabCompletion(command, arg, allPos, value);
if (typeof newValue === "string" && newValue !== "") { if (typeof newValue === "string" && newValue !== "") {
if (!newValue.endsWith(" ") && allPos.length === 1) newValue += " "; if (!newValue.endsWith(" ") && !newValue.endsWith("/") && allPos.length === 1) newValue += " ";
saveValue(newValue); saveValue(newValue);
} }
if (Array.isArray(newValue)) { if (Array.isArray(newValue)) {