apps/gophers: add explicit redraws

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-12 14:08:59 +02:00
parent 326f78c341
commit c7fda6d37d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -201,6 +201,7 @@ func (a *App) run() error {
case 'P':
if e.Modifiers.Contain(key.ModCommand) {
a.w.Profiling = !a.w.Profiling
a.w.Redraw()
}
}
}
@@ -227,6 +228,7 @@ func (a *App) run() error {
if a.selectedUser != nil {
a.selectedUser = nil
e.Cancel = true
a.w.Redraw()
}
}
case app.DrawEvent: