From 87b4f8e99718c22b1d0b3d0772a4d7b4b58b848c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 28 Jul 2018 18:45:24 +0900 Subject: [PATCH] Empty buf completion --- src/background/usecases/completions.js | 3 +++ 1 file changed, 3 insertions(+) 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)]); }