fix: set hilbish.vimMode property before throwing hook

windows-fixes
TorchedSammy 2022-03-06 12:08:00 -04:00
parent 7b693908df
commit 928b829388
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 1 deletions

2
api.go
View File

@ -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() {