diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7116459..a4aabf3 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -137,7 +137,7 @@ endfunction if exists('+shellslash') - let s:dir_commit_file = '\c^fugitive://\%(/[^/]\@=\)\=\(.\{-\}\)//\%(\(\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, '\', '/')