Tab complete !bufnr

This commit is contained in:
Tim Pope
2021-09-01 07:54:47 -04:00
parent 5b0a4af8fc
commit 254cc8e81d

View File

@@ -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 = []