summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/fzf.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 2f449091..c0bae817 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -772,7 +772,10 @@ let s:default_action = {
\ 'ctrl-v': 'vsplit' }
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