Skip to content

Commit 5e40e55

Browse files
authored
Merge pull request #489 from ctrlpvim/fix-487
Fix #487 buffer name is not displayed problem
2 parents ebc568c + 017bd68 commit 5e40e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ fu! s:bufnrfilpath(line)
20152015
let filpath = s:dyncwd.s:lash().a:line
20162016
en
20172017
let filpath = fnamemodify(filpath, ':p')
2018-
let bufnr = bufnr('^'.filpath.'$')
2018+
let bufnr = bufnr('^'.fnameescape(filpath).'$')
20192019
if (!filereadable(filpath) && bufnr < 1)
20202020
if (a:line =~ '[\/]\?\[\d\+\*No Name\]$')
20212021
let bufnr = str2nr(matchstr(a:line, '[\/]\?\[\zs\d\+\ze\*No Name\]$'))

0 commit comments

Comments
 (0)