From 9afa926a23e4fc74d886d57552affca90f556882 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 9 Jul 2019 13:26:07 -0400 Subject: [PATCH] Fix subcommand completion to match :Git completion --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 389b4d9..f7fc749 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1456,7 +1456,7 @@ function! s:CompleteSubcommand(subcommand, A, L, P, ...) abort elseif a:A =~# '^-' || a:A is# 0 return s:FilterEscape(split(s:ChompDefault('', a:subcommand, '--git-completion-helper'), ' '), a:A) elseif !a:0 - return fugitive#CompleteObject(a:A) + return fugitive#CompleteObject(a:A, s:Dir()) elseif type(a:1) == type(function('tr')) return call(a:1, [a:A, a:L, a:P]) else