mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(input): fixed completion. Closes #2472
This commit is contained in:
parent
c1e15001c0
commit
3024376580
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue