Add text event callback

This commit is contained in:
Zachary Yedidia
2020-01-31 00:56:15 -05:00
parent 016b8dcc4c
commit e3131a0779
2 changed files with 17 additions and 14 deletions

View File

@@ -211,10 +211,6 @@ func main() {
if err != nil {
screen.TermMessage(err)
}
err = config.RunPluginFn("init")
if err != nil {
screen.TermMessage(err)
}
b := LoadInput()
@@ -227,6 +223,11 @@ func main() {
action.InitTabs(b)
action.InitGlobals()
err = config.RunPluginFn("init")
if err != nil {
screen.TermMessage(err)
}
events = make(chan tcell.Event)
// Here is the event loop which runs in a separate thread