fix CommandMap typo

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-07-24 13:21:36 +01:00
parent 7c3873b449
commit ef39327073
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -48,7 +48,7 @@ export default class CommandProvider extends AutocompleteProvider {
const name = command[1].substr(1); // strip leading `/` const name = command[1].substr(1); // strip leading `/`
if (CommandMap[name]) { if (CommandMap[name]) {
// some commands, namely `me` and `ddg` don't suit having the usage shown whilst typing their arguments // some commands, namely `me` and `ddg` don't suit having the usage shown whilst typing their arguments
if (!CommandMap[name].hideCompletionAfterSpace) return []; if (CommandMap[name].hideCompletionAfterSpace) return [];
matches = [CommandMap[name]]; matches = [CommandMap[name]];
} }
} else { } else {