Fix :Gedit /

This commit is contained in:
Tim Pope
2021-04-13 07:39:47 -04:00
parent 503c22f1f5
commit 7866e83cc2

View File

@@ -4978,8 +4978,8 @@ function! fugitive#Open(cmd, bang, mods, arg, args) abort
catch /^fugitive:/
return 'echoerr ' . string(v:exception)
endtry
if file !~# '^\a\a\+:'
let file = s:sub(file, '/$', '')
if file !~# '^\a\a\+:' && !(has('win32') && file =~# '^\a:/$')
let file = substitute(file, '.\zs' . (has('win32') ? '[\/]' : '/') . '$', '', '')
endif
if a:cmd ==# 'edit'
call s:BlurStatus()