diff --git a/autoload/ctrlp_bdelete.vim b/autoload/ctrlp_bdelete.vim index 3ad25c4..5d216df 100644 --- a/autoload/ctrlp_bdelete.vim +++ b/autoload/ctrlp_bdelete.vim @@ -48,7 +48,7 @@ function! s:DeleteMarkedBuffers() let marked = ctrlp#getmarkedlist() " the file under the cursor is implicitly marked - if empty(marked) + if empty(marked) && ctrlp#getcline() != '' call add(marked, fnamemodify(ctrlp#getcline(), ':p')) endif