fix bdelete/bdelete! commands
This commit is contained in:
parent
32fb827f02
commit
1623684bce
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Reference in a new issue