diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-20 16:13:06 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-20 16:13:06 +0900 |
commit | 7acbdbfef25d04503d4a31dfa1953be29323cc87 (patch) | |
tree | e71ff2bb27b0946e79d80d64b5141653c8d69162 /src | |
parent | 5ecada5b2313b01e24639ebf59fc3b9346f7b65c (diff) |
Show completions only command
Diffstat (limited to 'src')
-rw-r--r-- | src/console/components/console.js | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |