From c48db08e4e9b21a3f4d2e61603526ea4d644929c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 20 Jan 2020 09:19:53 -0500 Subject: [PATCH] Use appropriate slashes for :Dispatch working directory --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index eb4e5ba..f82817f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1845,7 +1845,7 @@ function! fugitive#BufReadStatus() abort if &bufhidden ==# '' setlocal bufhidden=delete endif - let b:dispatch = '-compiler=git -dir=' . s:fnameescape(len(tree) ? tree : s:Dir()) . + let b:dispatch = '-compiler=git -dir=' . s:fnameescape(FugitiveVimPath(len(tree) ? tree : s:Dir())) . \ ' ' . s:UserCommand() . ' ' . s:shellesc(s:AskPassArgs(s:Dir())) . ' fetch --all' call fugitive#MapJumps() call s:Map('n', '-', ":execute Do('Toggle',0)", '')