diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 14368dc..08695ad 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2302,7 +2302,7 @@ function! fugitive#CompleteObject(base, ...) abort endif let base = s:Expand(a:base) - if a:base ==# '!' && base !=# '!' + if a:base =~# '^!\d*$' && base !~# '^!' return [base] elseif base =~# '^\.\=/\|^:(' || base !~# ':' let results = []