mirror of https://github.com/Hilbis/Hilbish
fix: set hilbish.vimMode property before throwing hook
parent
7b693908df
commit
928b829388
2
api.go
2
api.go
|
@ -154,8 +154,8 @@ func luaBinaryComplete(L *lua.LState) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func setVimMode(mode string) {
|
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)")
|
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() {
|
func unsetVimMode() {
|
||||||
|
|
Loading…
Reference in New Issue