fix: revert w→chat-w replacement outside view-chat
view-status and view-sidebar don't have chat-w bound. Reverted lines 78 and 236 to use w instead of chat-w.
This commit is contained in:
@@ -75,7 +75,7 @@ Returns a list of strings, one per line."
|
||||
(dotimes (col w)
|
||||
(cl-tty.backend:draw-text fb 0 (- h 1) (make-string w :initial-element #\Space) nil bg))
|
||||
(cl-tty.backend:draw-text fb 1 (- h 1) left fg nil)
|
||||
(cl-tty.backend:draw-text fb (- chat-w (length right) 2) (- h 1) right fg nil)))
|
||||
(cl-tty.backend:draw-text fb (- w (length right) 2) (- h 1) right fg nil)))
|
||||
|
||||
|
||||
;; v0.7.2: search-highlight — wrap matching text in **bold** for markdown
|
||||
@@ -233,7 +233,7 @@ Returns a list of strings, one per line."
|
||||
"Render the right-side sidebar panel with warm colors."
|
||||
(let* ((w (or (and (numberp w) (> w 0) w) 80))
|
||||
(h (or (and (numberp h) (> h 0) h) 24))
|
||||
(x (- chat-w (or (st :sidebar-width) 30)))
|
||||
(x (- w (or (st :sidebar-width) 30)))
|
||||
(y 0))
|
||||
;; Vertical separator
|
||||
(dotimes (row h)
|
||||
|
||||
Reference in New Issue
Block a user