From f6ff6bb274ef075b15b7397d2553af10d02d5968 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 19 Dec 2021 12:54:15 -0400 Subject: [PATCH] fix(hilbish.aliases): push list of aliases in all() function --- aliases.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aliases.go b/aliases.go index 2762cba..b79bbe6 100644 --- a/aliases.go +++ b/aliases.go @@ -68,7 +68,6 @@ func (h *hilbishAliases) Loader(L *lua.LState) *lua.LTable { func (h *hilbishAliases) luaAdd(L *lua.LState) int { alias := L.CheckString(1) cmd := L.CheckString(2) - h.Add(alias, cmd) return 0 @@ -80,12 +79,13 @@ func (h *hilbishAliases) luaList(L *lua.LState) int { aliasesList.RawSetString(k, lua.LString(v)) } + L.Push(aliasesList) + return 1 } func (h *hilbishAliases) luaDelete(L *lua.LState) int { alias := L.CheckString(1) - h.Delete(alias) return 0