mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 21:14:53 +08:00
Fix :Gedit /
This commit is contained in:
@@ -4978,8 +4978,8 @@ function! fugitive#Open(cmd, bang, mods, arg, args) abort
|
|||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr ' . string(v:exception)
|
return 'echoerr ' . string(v:exception)
|
||||||
endtry
|
endtry
|
||||||
if file !~# '^\a\a\+:'
|
if file !~# '^\a\a\+:' && !(has('win32') && file =~# '^\a:/$')
|
||||||
let file = s:sub(file, '/$', '')
|
let file = substitute(file, '.\zs' . (has('win32') ? '[\/]' : '/') . '$', '', '')
|
||||||
endif
|
endif
|
||||||
if a:cmd ==# 'edit'
|
if a:cmd ==# 'edit'
|
||||||
call s:BlurStatus()
|
call s:BlurStatus()
|
||||||
|
|||||||
Reference in New Issue
Block a user