We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35fac96 commit ede737bCopy full SHA for ede737b
1 file changed
autoload/ctrlp.vim
@@ -1934,10 +1934,15 @@ endf
1934
1935
fu! s:bufnrfilpath(line)
1936
if s:isabs(a:line)
1937
- let filpath = fnamemodify(a:line, ':p')
+ let filpath = a:line
1938
el
1939
- let filpath = fnamemodify(s:dyncwd.(&shellslash ? '/' : '\').a:line, ':p')
+ if (has('win32') || has('win64')) && !&shellslash
1940
+ let filpath = s:dyncwd.'\'.a:line
1941
+ el
1942
+ let filpath = s:dyncwd.'/'.a:line
1943
+ en
1944
en
1945
+ let filpath = fnamemodify(filpath, ':p')
1946
let bufnr = bufnr('^'.filpath.'$')
1947
if (a:line =~ '[\/]\?\[\d\+\*No Name\]$' && !filereadable(filpath) && bufnr < 1)
1948
let bufnr = str2nr(matchstr(a:line, '[\/]\?\[\zs\d\+\ze\*No Name\]$'))
0 commit comments