Empty buf completion

This commit is contained in:
Shin'ya Ueoka 2018-07-28 18:45:24 +09:00
parent ee0f7b5806
commit 87b4f8e997

View file

@ -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)]);
}