docs: add code comment explaining draw (#2735)
This commit is contained in:
1 parent
1d8a32edef
commit
59cbc97b50
1 file changed
+2
@@ -1282,6 +1282,8 @@ func (e *callExpr) eval(app *app, _ []string) {
|
|||||||
app.ui.echoerrf("sync: %s", err)
|
app.ui.echoerrf("sync: %s", err)
|
||||||
}
|
}
|
||||||
case "draw":
|
case "draw":
|
||||||
|
// Input handlers return this no-op instead of nil to
|
||||||
|
// trigger the screen update performed by [app.loop].
|
||||||
case "redraw":
|
case "redraw":
|
||||||
app.ui.screen.Sync()
|
app.ui.screen.Sync()
|
||||||
app.ui.renew()
|
app.ui.renew()
|
||||||
|
|||||||
Reference in new issue
Block a user