Revert "fix(Man.lua): trigger completion even without arguments" #31572

This reverts commit 7940ec6913.
This commit is contained in:
Justin M. Keyes 2024-12-13 06:46:40 -08:00 committed by GitHub
parent 9c20342297
commit 65b1733405
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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