mirror of
https://github.com/junegunn/fzf
synced 2024-11-10 13:10:44 +00:00
parent
8db3345c2f
commit
1fcc07e54e
@ -756,7 +756,7 @@ let s:default_action = {
|
||||
function! s:shortpath()
|
||||
let short = pathshorten(fnamemodify(getcwd(), ':~:.'))
|
||||
let slash = (s:is_win && !&shellslash) ? '\' : '/'
|
||||
return empty(short) ? '~'.slash : short . (short =~ slash.'$' ? '' : slash)
|
||||
return empty(short) ? '~'.slash : short . (short =~ escape(slash, '\').'$' ? '' : slash)
|
||||
endfunction
|
||||
|
||||
function! s:cmd(bang, ...) abort
|
||||
|
Loading…
Reference in New Issue
Block a user