From 928b82938847a401e80ad245473db516a505b8b3 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 6 Mar 2022 12:08:00 -0400 Subject: [PATCH] fix: set hilbish.vimMode property before throwing hook --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 5c83889..cd17f49 100644 --- a/api.go +++ b/api.go @@ -154,8 +154,8 @@ func luaBinaryComplete(L *lua.LState) int { } func setVimMode(mode string) { - hooks.Em.Emit("hilbish.vimMode", mode) util.SetField(l, hshMod, "vimMode", lua.LString(mode), "Current Vim mode of Hilbish (nil if not in Vim mode)") + hooks.Em.Emit("hilbish.vimMode", mode) } func unsetVimMode() {