parent
dde01fce0a
commit
7fc93313bc
5
app.go
5
app.go
@ -39,6 +39,8 @@ func waitKey() error {
|
||||
|
||||
func (app *App) handleInp() {
|
||||
for {
|
||||
// exit check is done on the top just in case user quits
|
||||
// before input handling for some reason (e.g. in configuration file)
|
||||
if gExitFlag {
|
||||
log.Print("bye!")
|
||||
|
||||
@ -64,6 +66,9 @@ func (app *App) handleInp() {
|
||||
continue
|
||||
}
|
||||
e.eval(app, nil)
|
||||
if gExitFlag {
|
||||
continue
|
||||
}
|
||||
app.ui.draw(app.nav)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user