From e198e8b5dad84553af9cedcefd137f512f776344 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 12 May 2026 13:50:55 +0000 Subject: [PATCH] fix: text-input cursor now rendered as solid block at cursor position --- src/components/text-input.lisp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/text-input.lisp b/src/components/text-input.lisp index dc8f6ec..67412cc 100644 --- a/src/components/text-input.lisp +++ b/src/components/text-input.lisp @@ -167,5 +167,8 @@ value (or (text-input-placeholder in) ""))) (truncated (subseq display 0 (min (length display) w)))) - (declare (ignore cursor)) - (draw-text backend x y truncated nil nil))) + (draw-text backend x y truncated nil nil) + ;; Draw a solid-block cursor at the visible cursor position + (when (plusp (length value)) + (let ((cursor-col (min cursor (length truncated)))) + (draw-text backend (+ x cursor-col) y "█" :bright-white nil)))))