From 0bd3885169bbdd73869bad54a14a742928c96c4f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 26 Jun 2022 15:41:03 -0400 Subject: [PATCH] Fix match of fugitive:////unchost/path// on win32 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '\', '/')