Fix tabbing

This commit is contained in:
2022-06-12 15:19:24 +02:00
parent da277794af
commit 6e1175ee55
2 changed files with 19 additions and 13 deletions

View File

@ -17,7 +17,7 @@ export class CommandInterface {
static commandCompletion(input: string): string[] {
if (input === "") return [];
const candidates = commandList.filter(cmd => cmd.name.substring(0, input.length) === input).map(cmd => cmd.name);
const candidates = commandList.filter(cmd => cmd.name.startsWith(input)).map(cmd => cmd.name);
return candidates;
}