fix bdelete/bdelete! commands

This commit is contained in:
Shin'ya Ueoka 2018-06-25 21:44:35 +09:00
parent 32fb827f02
commit 1623684bce

View file

@ -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) {