From 7acbdbfef25d04503d4a31dfa1953be29323cc87 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 20 Oct 2018 16:13:06 +0900 Subject: Show completions only command --- src/console/components/console.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/console/components/console.js b/src/console/components/console.js index bd3e344..4fc8a53 100644 --- a/src/console/components/console.js +++ b/src/console/components/console.js @@ -97,9 +97,12 @@ export default class ConsoleComponent { } onInput(e) { + let state = this.store.getState(); let text = e.target.value; this.store.dispatch(consoleActions.setConsoleText(text)); - this.store.dispatch(consoleActions.getCompletions(text)); + if (state.mode === 'command') { + this.store.dispatch(consoleActions.getCompletions(text)); + } } onInputShown(state) { -- cgit v1.2.3