fix: move nil guard before backend info message

The backend info message showed NIL for height because the nil
guard ran after it. Swap order so the message shows guarded values.
This commit is contained in:
2026-05-14 14:20:28 -04:00
parent 14cdb6c7b4
commit e0003a5f3c

View File

@@ -917,6 +917,9 @@ Event handlers + daemon I/O + main loop.
:stderr nil)) :stderr nil))
(tty-in (uiop:process-info-output cat-proc))) (tty-in (uiop:process-info-output cat-proc)))
(add-msg :system (format nil "* cat pid=~a *" (uiop:process-info-pid cat-proc))) (add-msg :system (format nil "* cat pid=~a *" (uiop:process-info-pid cat-proc)))
;; Guard against nil w/h from backend-size
(setq w (or (and (numberp w) (> w 0) w) 80)
h (or (and (numberp h) (> h 0) h) 24))
;; Log backend info and terminal dimensions ;; Log backend info and terminal dimensions
(let ((backend-type (if (typep be 'cl-tty.backend:modern-backend) (let ((backend-type (if (typep be 'cl-tty.backend:modern-backend)
"modern" "simple"))) "modern" "simple")))