Improve lua interface

This commit is contained in:
Zachary Yedidia
2020-01-31 14:21:27 -05:00
parent d326a9cddd
commit f731e422ea
3 changed files with 25 additions and 6 deletions

View File

@@ -191,7 +191,7 @@ func (eh *EventHandler) Execute(t *TextEvent) {
}
eh.UndoStack.Push(t)
b, err := config.RunPluginFnBool("onBeforeTextEvent", luar.New(ulua.L, t))
b, err := config.RunPluginFnBool("onBeforeTextEvent", luar.New(ulua.L, eh.buf), luar.New(ulua.L, t))
if err != nil {
screen.TermMessage(err)
}