diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-20 16:43:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-20 16:43:38 +0900 |
commit | df9094e52066fb85a06d373cb3a82b670d69c88e (patch) | |
tree | e71ff2bb27b0946e79d80d64b5141653c8d69162 /src | |
parent | 958b931090e0cc012e36a9361ea6e4cd9be1471d (diff) | |
parent | 7acbdbfef25d04503d4a31dfa1953be29323cc87 (diff) |
Merge pull request #492 from ueokande/qa-0.19
QA 0.19
Diffstat (limited to 'src')
-rw-r--r-- | src/background/usecases/completions.js | 3 | ||||
-rw-r--r-- | src/console/components/console.js | 5 | ||||
-rw-r--r-- | src/shared/settings/properties.js | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/background/usecases/completions.js b/src/background/usecases/completions.js index 2dc71cc..21dc668 100644 --- a/src/background/usecases/completions.js +++ b/src/background/usecases/completions.js @@ -39,7 +39,8 @@ export default class CompletionsInteractor { let settings = await this.settingRepository.get(); let groups = []; - for (let c of settings.properties.complete) { + let complete = settings.properties.complete || properties.defaults.complete; + for (let c of complete) { if (c === 's') { // eslint-disable-next-line no-await-in-loop let engines = await this.querySearchEngineItems(name, keywords); 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) { diff --git a/src/shared/settings/properties.js b/src/shared/settings/properties.js index 96f10ac..f8e61a0 100644 --- a/src/shared/settings/properties.js +++ b/src/shared/settings/properties.js @@ -12,7 +12,7 @@ const types = { const defaults = { hintchars: 'abcdefghijklmnopqrstuvwxyz', smoothscroll: false, - complete: 'sbn', + complete: 'sbh', }; const docs = { |