d11wtq / ctrlp_bdelete.vim

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

fname parsed incorrectly - named buffers #10

Open j5shi opened 8 years ago

j5shi commented 8 years ago

Given fname = C:\apps\cygwin\usr\include\bash\general.h, after parsing, bufid will be D:\apps\cygwin\usr\include\bash\general.h in some cases, which is incorrect.

j5shi commented 8 years ago

I think fnamemodify(fname, ':p') works, but I don't know why you wrote it as fnamemodify(fname[2:], ':p'), is it designed for some exceptions?