diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-28 18:45:24 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-28 18:45:24 +0900 |
commit | 87b4f8e99718c22b1d0b3d0772a4d7b4b58b848c (patch) | |
tree | aac13aa09b179f5ddcf6bdd588878d2c634b9dc8 | |
parent | ee0f7b5806c8e28e3a7dc002e9dde467d1fa2a9b (diff) |
Empty buf completion
-rw-r--r-- | src/background/usecases/completions.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/background/usecases/completions.js b/src/background/usecases/completions.js index 92a54c1..2bf5b3b 100644 --- a/src/background/usecases/completions.js +++ b/src/background/usecases/completions.js @@ -106,6 +106,9 @@ export default class CompletionsInteractor { url: tab.url, icon: tab.favIconUrl })); + if (items.length === 0) { + return Promise.resolve(Completions.empty()); + } return new Completions([new CompletionGroup('Buffers', items)]); } |