diff options
| author | Yasuhiro Matsumoto | 2016-04-10 22:48:53 +0900 |
|---|---|---|
| committer | Yasuhiro Matsumoto | 2016-04-10 22:48:53 +0900 |
| commit | 7607f8234c4e9cd217a38d11ec69e1ef7d446dfe (patch) | |
| tree | 460da83b44d257a68309ab5dce08b281cfdc1ca4 | |
| parent | 0cb63b67202085f3fdaf21c8da0f8e35a052dc08 (diff) | |
| parent | ede737b2cbf5a19d7d279f03e530194b36197422 (diff) | |
| download | ctrlp.vim-core-types.tar.gz | |
Merge branch ‘master’ into core-types
core-types| -rw-r--r-- | autoload/ctrlp.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/autoload/ctrlp.vim b/autoload/ctrlp.vim index 8e99843..52146fd 100644 --- a/autoload/ctrlp.vim +++ b/autoload/ctrlp.vim @@ -1939,10 +1939,15 @@ endf fu! s:bufnrfilpath(line) if s:isabs(a:line) - let filpath = fnamemodify(a:line, ':p') + let filpath = a:line el - let filpath = fnamemodify(s:dyncwd.(&shellslash ? '/' : '\').a:line, ':p') + if (has('win32') || has('win64')) && !&shellslash + let filpath = s:dyncwd.'\'.a:line + el + let filpath = s:dyncwd.'/'.a:line + en en + let filpath = fnamemodify(filpath, ':p') let bufnr = bufnr('^'.filpath.'$') if (a:line =~ '[\/]\?\[\d\+\*No Name\]$' && !filereadable(filpath) && bufnr < 1) let bufnr = str2nr(matchstr(a:line, '[\/]\?\[\zs\d\+\ze\*No Name\]$')) |