fix bdelete/bdelete! commands

jh-changes
Shin'ya Ueoka 7 years ago
parent 32fb827f02
commit 1623684bce
  1. 4
      src/background/shared/tabs.js

@ -22,7 +22,7 @@ const queryByKeyword = async(keyword, excludePinned = false) => {
};
const closeTabByKeywords = async(keyword) => {
let tabs = await queryByKeyword(keyword, false);
let tabs = await queryByKeyword(keyword, true);
if (tabs.length === 0) {
throw new Error('No matching buffer for ' + keyword);
} else if (tabs.length > 1) {
@ -32,7 +32,7 @@ const closeTabByKeywords = async(keyword) => {
};
const closeTabByKeywordsForce = async(keyword) => {
let tabs = await queryByKeyword(keyword, true);
let tabs = await queryByKeyword(keyword, false);
if (tabs.length === 0) {
throw new Error('No matching buffer for ' + keyword);
} else if (tabs.length > 1) {