Improve gutter messages

This commit is contained in:
Zachary Yedidia
2019-08-03 23:53:33 -07:00
parent ccb5904591
commit bc6dd990e5
8 changed files with 52 additions and 21 deletions

View File

@@ -232,18 +232,16 @@ func main() {
select {
case f := <-shell.Jobs:
// If a new job has finished while running in the background we should execute the callback
log.Println("OUTPUT:", f.Output)
f.Function(f.Output, f.Args...)
case event = <-events:
case <-screen.DrawChan:
}
if event != nil {
if action.InfoBar.HasPrompt {
action.InfoBar.HandleEvent(event)
} else {
action.Tabs.HandleEvent(event)
}
if action.InfoBar.HasPrompt {
action.InfoBar.HandleEvent(event)
} else {
action.Tabs.HandleEvent(event)
}
log.Println("Done event cycle")
}
}