From 25418a2becdfcb3f6dac1b329d9c8223ab8c9244 Mon Sep 17 00:00:00 2001 From: Amadeus Demarzi Date: Sun, 30 Apr 2017 02:44:04 -0700 Subject: [PATCH] Don't add invalid buffers to marked --- autoload/ctrlp_bdelete.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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