From a50f6094cce296f8a4017a1e45116f2b95a79cae Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 16 Jun 2018 16:44:13 +0100 Subject: [PATCH] allow `/` + wait to also show all commands Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/autocomplete/CommandProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autocomplete/CommandProvider.js b/src/autocomplete/CommandProvider.js index 2618b41c7d..b162f2f92a 100644 --- a/src/autocomplete/CommandProvider.js +++ b/src/autocomplete/CommandProvider.js @@ -128,8 +128,8 @@ export default class CommandProvider extends AutocompleteProvider { const {command, range} = this.getCurrentCommand(query, selection); if (!command) return []; - // if the query is just `/` and the user hit TAB, show them all COMMANDS otherwise FuzzyMatch them - const matches = query === '/' && force ? COMMANDS : this.matcher.match(command[1]); + // if the query is just `/` (and the user hit TAB or waits), show them all COMMANDS otherwise FuzzyMatch them + const matches = query === '/' ? COMMANDS : this.matcher.match(command[1]); return matches.map((result) => { return { // If the command is the same as the one they entered, we don't want to discard their arguments