fix(nature/completions): get command name properly for custom completions

history-navigation-fix
TorchedSammy 2022-12-05 23:15:35 -04:00
parent 604dedb36d
commit 26ff6c9a46
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 2 additions and 1 deletions

View File

@ -161,6 +161,7 @@ will result in the files being completed.
- Cut off item names in grid menu if its longer than cell width
- Fix completion search menu disappearing
- Completion paths having duplicated characters if it's escaped
- Get custom completion command properly to call from Lua
## [2.0.0-rc1] - 2022-09-14
This is a pre-release version of Hilbish for testing. To see the changelog,

View File

@ -24,7 +24,7 @@ function hilbish.completion.handler(line, pos)
return {compGroup}, pfx
else
local ok, compGroups, pfx = pcall(hilbish.completion.call,
'command.' .. #fields[1], query, ctx, fields)
'command.' .. fields[1], query, ctx, fields)
if ok then
return compGroups, pfx
end