From 254cc8e81d67739dc6b87dd9c3069485246a7b51 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Sep 2021 07:54:47 -0400 Subject: [PATCH] Tab complete !bufnr --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = []