Sync up win32 and UNIX fugitive:// regexps

Remove support for an optional second slash delimiter that was
accidentally committed in the previous win32 change.
This commit is contained in:
Tim Pope
2022-06-26 15:49:41 -04:00
parent 0bd3885169
commit e7a33baccc

View File

@@ -137,7 +137,7 @@ endfunction
if exists('+shellslash')
let s:dir_commit_file = '\c^fugitive://\%(/[^/]\@=\)\=\(.\{-1,\}\)//\%(\(\x\{40,\}\|[0-3]\)/\=\(/.*\)\=\)\=$'
let s:dir_commit_file = '\c^fugitive://\%(/[^/]\@=\)\=\(.\{-1,\}\)//\%(\(\x\{40,\}\|[0-3]\)\(/.*\)\=\)\=$'
function! s:Slash(path) abort
return tr(a:path, '\', '/')