fix(hilbish.aliases): push list of aliases in all() function

windows-fixes
TorchedSammy 2021-12-19 12:54:15 -04:00
parent bcc249a4bd
commit f6ff6bb274
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,6 @@ func (h *hilbishAliases) Loader(L *lua.LState) *lua.LTable {
func (h *hilbishAliases) luaAdd(L *lua.LState) int { func (h *hilbishAliases) luaAdd(L *lua.LState) int {
alias := L.CheckString(1) alias := L.CheckString(1)
cmd := L.CheckString(2) cmd := L.CheckString(2)
h.Add(alias, cmd) h.Add(alias, cmd)
return 0 return 0
@ -80,12 +79,13 @@ func (h *hilbishAliases) luaList(L *lua.LState) int {
aliasesList.RawSetString(k, lua.LString(v)) aliasesList.RawSetString(k, lua.LString(v))
} }
L.Push(aliasesList)
return 1 return 1
} }
func (h *hilbishAliases) luaDelete(L *lua.LState) int { func (h *hilbishAliases) luaDelete(L *lua.LState) int {
alias := L.CheckString(1) alias := L.CheckString(1)
h.Delete(alias) h.Delete(alias)
return 0 return 0