From 4bfb4070945e805335c24f190fefe18601547808 Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Thu, 14 May 2026 12:51:21 -0400 Subject: [PATCH] fix: draw hint before prompt so cursor stays at input line view-input drew prompt first (row h-3), then hint (row h-2), leaving the cursor at end of the hint line after 'complete'. Typed characters appeared there. Swapped order: hint first, prompt last, so cursor ends at the > prompt. --- org/channel-tui-view.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org/channel-tui-view.org b/org/channel-tui-view.org index 3ded16a..97daf45 100644 --- a/org/channel-tui-view.org +++ b/org/channel-tui-view.org @@ -213,9 +213,9 @@ Returns a list of strings, one per line." (pos (or (st :cursor-pos) 0)) (display-start (max 0 (- pos (1- w)))) (visible (subseq text display-start (min (length text) (+ display-start w))))) - (cl-tty.backend:draw-text fb 0 (- h 3) (format nil "> ~a" visible) (theme-color :input-fg) nil) (cl-tty.backend:draw-text fb 0 (- h 2) (format nil " Ctrl+P palette | Up/Dn history | Tab complete") - (theme-color :hint) nil))) + (theme-color :hint) nil) + (cl-tty.backend:draw-text fb 0 (- h 3) (format nil "> ~a" visible) (theme-color :input-fg) nil))) #+end_src ** Sidebar