From 65b1733405e558e80527096a0ba42b5a678c9b54 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 13 Dec 2024 06:46:40 -0800 Subject: [PATCH] Revert "fix(Man.lua): trigger completion even without arguments" #31572 This reverts commit 7940ec69136fa992c98aa7b37265fbc2e619232e. --- runtime/lua/man.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/lua/man.lua b/runtime/lua/man.lua index e5343234fc..114c94f9e5 100644 --- a/runtime/lua/man.lua +++ b/runtime/lua/man.lua @@ -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