kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

CtrlPBuffer do not list all open buffers #636

Open solyarisoftware opened 9 years ago

solyarisoftware commented 9 years ago

I have 11 buffers open in vim:

:ls

1 "gemlist.txt" line 1 2 "loremEng.txt" line 0 3 a "lorem.txt" line 0 4 "osko_architecture.txt" line 0 5 "pubsub.txt" line 0 6 "readme2013.txt" line 0 7 "tips1.txt" line 0 11 %a "~/.vimrc" line 96

Now if I run:

:CtrlPBuffer

I got a list with a subset list (7 buffers instead of 11):

tips1.txt 11% 1:1

gemlist.txt lorem.txt /home/solyaris/.vimrc # readme2013.txt pubsub.txt osko_architecture.txt loremEng.txt

Why CtrlP doesn't list ALL buffers ? Where I'm wrong ?

BTW, I set in .vimrc this statement: let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:10,results:30'

thanks giorgio

t7ko commented 9 years ago

Well... If you count carefully, you'll notice that your :ls returned 8 buffers. And CtrlP also returned 8 -- one current, and 7 options.

solyarisoftware commented 9 years ago

yes, you are right, and the issue could be closed, I have been confused by buffers "numbering"!

Now I'm far from my vim now and I can't test again, but when I posted the issue It was seem to me from some tests, that CtrlP (:CtrlPBuffer or just :CtrlP, see also open issue: https://github.com/kien/ctrlp.vim/issues/631) do not always list ALL "expected" files... but maybe I'm wrong.