d11wtq / ctrlp_bdelete.vim

An extension to ctrlp.vim for deleting open buffers
58 stars 14 forks source link

Don't add invalid buffers to marked array #12

Open amadeus opened 7 years ago

amadeus commented 7 years ago

I found a bug wherein if you press <c-@> when the buffer list is empty, it causes a weird issue to occur where CtrlP takes over the entire screen.

This should fix it by only adding the currently selected line to marked if ctrlp#getcline() evaluates to something other than an empty string.