Don't strip trailing slash from URLs

This commit is contained in:
Tim Pope
2018-08-06 10:52:41 -04:00
parent 73ed8e8a71
commit 887d86e920

View File

@@ -2178,7 +2178,7 @@ function! s:Edit(cmd, bang, mods, args, ...) abort
catch /^fugitive:/
return 'echoerr v:errmsg'
endtry
if file !~# '^fugitive:'
if file !~# '^\a\a\+:'
let file = s:sub(file, '/$', '')
endif
if a:cmd ==# 'edit'