tacahiroy/ctrlp.vim — pull request #1 by tacahiroy (2012-02-12 00:25:40+00:00)
Title: Fix cannot go to the other buffer problem

Hi Kien,

Thank you for the nice plugin ctrlp.vim.

I encountered an error when I was using Line extension, please see following:

a.txt:

foo bar baz

b.txt:

hoge fuga moge

---

% vim a.txt b.txt
:CtrlPLine
>>> hoge

Error detected while processing function 52_AcceptSelection..ctrlp#line#accept..ctrlp#acceptfile..52
_openfile:
line 4:
E94: No matching buffer for +1 2

I can see same error when I press <C-x>, <C-v> and <C-t> as well.
Probably, `:buffer`, `:sbuffer` and `:tab` do not accept `+{lnum}`.

I worry about that `tail`, local variable of `s:openfile` (`autoload/ctrlp.vim`), whether can be always converted to a number.

Thanks:)