v0.8.0: move position-cursor out of dirty-guarded redraw and out of dialog-guarded let — runs every frame unconditional
Removed (position-cursor fb w h) from inside redraw (which is gated by dirty flags), and from inside the dialog-guarded (unless dialog* ...) block in the main loop. Added unconditional (position-cursor be w h) at loop body level so it runs every single iteration regardless of dirty state or dialog activity. This ensures the cursor highlight always tracks cursor-pos correctly.
This commit is contained in:
@@ -1093,11 +1093,9 @@ Returns T on success, nil on failure. Does NOT wait or retry."
|
||||
(format nil "> ~a" (or filter ""))
|
||||
(theme-color :input-prompt) bg-p))
|
||||
(cl-tty.backend:end-sync be))
|
||||
(sleep 0.1)
|
||||
;; Show terminal cursor at input position every frame
|
||||
(unless cl-tty.dialog:*dialog-stack*
|
||||
(passepartout.channel-tui:position-cursor be w h))))
|
||||
(progn (disconnect-daemon)))))
|
||||
(sleep 0.1))
|
||||
(position-cursor be w h))
|
||||
(progn (disconnect-daemon)))))
|
||||
#+END_SRC
|
||||
|
||||
* Test Suite
|
||||
|
||||
Reference in New Issue
Block a user