mirror of
https://codeberg.org/cage/tinmop/
synced 2025-03-01 09:47:46 +01:00
- fixed end position for 'visible-rows'
This commit is contained in:
parent
02894dcc64
commit
be6f2a9551
@ -102,14 +102,15 @@
|
||||
|
||||
(defun visible-rows (window)
|
||||
(with-accessors ((row-selected-index row-selected-index)) window
|
||||
(let* ((start row-selected-index)
|
||||
(end (+ start
|
||||
(win-height-no-border window))))
|
||||
(values (line-oriented-window:rows-safe-subseq window
|
||||
row-selected-index
|
||||
:end end)
|
||||
(let* ((start row-selected-index)
|
||||
(end (+ start
|
||||
(win-height-no-border window)))
|
||||
(rows (rows-safe-subseq window
|
||||
row-selected-index
|
||||
:end end)))
|
||||
(values rows
|
||||
start
|
||||
end))))
|
||||
(length rows)))))
|
||||
|
||||
(defun draw-text (window)
|
||||
(when hooks:*before-rendering-message-text*
|
||||
|
Loading…
x
Reference in New Issue
Block a user