fix(man.lua): :Man <tab> does not complete #31569

closes: #31512
This commit is contained in:
Luca Saccarola 2024-12-13 15:26:20 +01:00 committed by GitHub
parent c0ae39ee53
commit 7940ec6913
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -576,9 +576,8 @@ function M.man_complete(arg_lead, cmd_line, _)
end end
if #args == 1 then if #args == 1 then
-- returning full completion is laggy. Require some arg_lead to complete -- XXX: This (full completion) is laggy, but without it tab-complete is broken. #31512
-- return complete('', '', '') return complete('', '', '')
return {}
end end
if arg_lead:match('^[^()]+%([^()]*$') then if arg_lead:match('^[^()]+%([^()]*$') then