fix(input): fixed completion. Closes #2472

This commit is contained in:
Folke Lemaitre 2025-11-08 06:45:04 +01:00
parent c1e15001c0
commit 3024376580
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -291,7 +291,7 @@ end
function M.complete(findstart, base)
local completion = ctx.opts.completion
if findstart == 1 then
return 0
return #ctx.win:text():gsub("%S+$", "")
end
if not completion then
return {}