diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 6b843cb..1469a2c 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -263,7 +263,10 @@ endfunction " Files " ------------------------------------------------------------------ function! s:shortpath() - let short = pathshorten(fnamemodify(getcwd(), ':~:.')) + let short = fnamemodify(getcwd(), ':~:.') + if !has('win32unix') + let short = pathshorten(short) + endif let slash = (s:is_win && !&shellslash) ? '\' : '/' return empty(short) ? '~'.slash : short . (short =~ escape(slash, '\').'$' ? '' : slash) endfunction