aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-12-13 06:46:40 -0800
committerGitHub <noreply@github.com>2024-12-13 06:46:40 -0800
commit65b1733405e558e80527096a0ba42b5a678c9b54 (patch)
tree8fc3155c3945df04ec2f348b2f89cd2a2d0d8f42
parent9c20342297391c4076809964e799f2c7705b819b (diff)
downloadrneovim-65b1733405e558e80527096a0ba42b5a678c9b54.tar.gz
rneovim-65b1733405e558e80527096a0ba42b5a678c9b54.tar.bz2
rneovim-65b1733405e558e80527096a0ba42b5a678c9b54.zip
Revert "fix(Man.lua): trigger completion even without arguments" #31572
This reverts commit 7940ec69136fa992c98aa7b37265fbc2e619232e.
-rw-r--r--runtime/lua/man.lua5
1 files 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