Empty buf completion

jh-changes
Shin'ya Ueoka 6 years ago
parent ee0f7b5806
commit 87b4f8e997
  1. 3
      src/background/usecases/completions.js

@ -106,6 +106,9 @@ export default class CompletionsInteractor {
url: tab.url, url: tab.url,
icon: tab.favIconUrl icon: tab.favIconUrl
})); }));
if (items.length === 0) {
return Promise.resolve(Completions.empty());
}
return new Completions([new CompletionGroup('Buffers', items)]); return new Completions([new CompletionGroup('Buffers', items)]);
} }