Skip to content
Myr

[vim] Replace backslashes with forward slashes on win32unix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent b5b0d6b · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:plugin/fzf.vim+3 added
325 unmodified lines
326 " Preserve the current working directory in case it's changed during327 " the execution (e.g. `set autochdir` or `autocmd BufEnter * lcd ...`)328 let cwd = exists('w:fzf_pushd') ? w:fzf_pushd.dir : expand('%:p:h')329 for item in a:lines330 if has('win32unix') && item !~ '/'331 let item = substitute(item, '\', '/', 'g')332 end333 if item[0] != '~' && item !~ (s:is_win ? '^[A-Z]:\' : '^/')334 let sep = s:is_win ? '\' : '/'335 let item = join([cwd, item], cwd[len(cwd)-1] == sep ? '' : sep)336 endif
763 unmodified lines