mirror of https://codeberg.org/cage/tinmop/
- fixed end position for 'visible-rows'
This commit is contained in:
parent
02894dcc64
commit
be6f2a9551
|
@ -104,12 +104,13 @@
|
||||||
(with-accessors ((row-selected-index row-selected-index)) window
|
(with-accessors ((row-selected-index row-selected-index)) window
|
||||||
(let* ((start row-selected-index)
|
(let* ((start row-selected-index)
|
||||||
(end (+ start
|
(end (+ start
|
||||||
(win-height-no-border window))))
|
(win-height-no-border window)))
|
||||||
(values (line-oriented-window:rows-safe-subseq window
|
(rows (rows-safe-subseq window
|
||||||
row-selected-index
|
row-selected-index
|
||||||
:end end)
|
:end end)))
|
||||||
|
(values rows
|
||||||
start
|
start
|
||||||
end))))
|
(length rows)))))
|
||||||
|
|
||||||
(defun draw-text (window)
|
(defun draw-text (window)
|
||||||
(when hooks:*before-rendering-message-text*
|
(when hooks:*before-rendering-message-text*
|
||||||
|
|
Loading…
Reference in New Issue