ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.56k stars 259 forks source link

CtrlPBufTag opens the number of the buffer instead of the buffer itself #46

Open TaurusOlson opened 9 years ago

TaurusOlson commented 9 years ago

The command CtrlPBufTag opens a new file whose name is the number of the current buffer instead of the buffer. For example, if I'm editing the file /user/myproject/file.py whose buffer number is 7, running CtrlPBufTag in this file will open /user/myproject/7.

I'm not sure but this may be related to a recent commit modifying the way the buffers are displayed using a new buffer explorer mode. (8fc9a41)

tacahiroy commented 9 years ago

have reproduced the issue. I'm looking at this now. Sorry for inconvenience.

tacahiroy commented 9 years ago

Here's quick note for me: It seems changes for if block below affects to BufTag (and other itemtypes as well, perhaps). https://github.com/ctrlpvim/ctrlp.vim/commit/8fc9a41b24236350ad7150d1a563b97946d821ca#diff-c9de02bff2ec6d5e66b2f5f71beb595dL989

will have a look later today.

tacahiroy commented 9 years ago

@sergey-vlasov It would be good you could have a look at this if you have time. I'm gonna take a look later though.

noscript commented 9 years ago

Sorry for trouble, I will take a look.

tacahiroy commented 9 years ago

nvm - I haven't tested enough :/

noscript commented 9 years ago

PR created. Sorry again, I dropped accepting numbers in acceptfile() without second thought.

noscript commented 8 years ago

This should be working fine now.