docs: add code comment explaining draw (#2735)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-11-08 23:25:19 +01:00
1 parent 1d8a32edef
commit 59cbc97b50
1 file changed
+2
+2
View File
@@ -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()