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.
2 parents 0cb63b6 + ede737b commit 7607f82Copy full SHA for 7607f82
1 file changed
autoload/ctrlp.vim
@@ -1939,10 +1939,15 @@ endf
1939
1940
fu! s:bufnrfilpath(line)
1941
if s:isabs(a:line)
1942
- let filpath = fnamemodify(a:line, ':p')
+ let filpath = a:line
1943
el
1944
- let filpath = fnamemodify(s:dyncwd.(&shellslash ? '/' : '\').a:line, ':p')
+ if (has('win32') || has('win64')) && !&shellslash
1945
+ let filpath = s:dyncwd.'\'.a:line
1946
+ el
1947
+ let filpath = s:dyncwd.'/'.a:line
1948
+ en
1949
en
1950
+ let filpath = fnamemodify(filpath, ':p')
1951
let bufnr = bufnr('^'.filpath.'$')
1952
if (a:line =~ '[\/]\?\[\d\+\*No Name\]$' && !filereadable(filpath) && bufnr < 1)
1953
let bufnr = str2nr(matchstr(a:line, '[\/]\?\[\zs\d\+\ze\*No Name\]$'))
0 commit comments