From 59cbc97b502a3ec9228f550208a17e6045bf9be2 Mon Sep 17 00:00:00 2001 From: CatsDeservePets <145048791+CatsDeservePets@users.noreply.github.com> Date: Sun, 8 Nov 2026 23:25:19 +0100 Subject: [PATCH] docs: add code comment explaining `draw` (#2735) --- eval.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eval.go b/eval.go index 2267c38b..de2d9520 100644 --- a/eval.go +++ b/eval.go @@ -1282,6 +1282,8 @@ func (e *callExpr) eval(app *app, _ []string) { app.ui.echoerrf("sync: %s", err) } case "draw": + // Input handlers return this no-op instead of nil to + // trigger the screen update performed by [app.loop]. case "redraw": app.ui.screen.Sync() app.ui.renew()