mirror of https://codeberg.org/cage/tinmop/
- prevented printing line count for empty row window.
This commit is contained in:
parent
9b724d2639
commit
1e9fecc599
|
@ -468,20 +468,20 @@ this exact quantity would go beyond the length or rows or zero."
|
|||
x y
|
||||
:bgcolor (normal-bg row)
|
||||
:fgcolor (normal-fg row))))
|
||||
(when (> (rows-length object) 0)
|
||||
(let* ((current-selected (1+ (row-selected-index object)))
|
||||
(pages-count-line (text-ellipsis (format nil
|
||||
(pages-count-line (format nil
|
||||
(_ "line ~a of ~a")
|
||||
current-selected
|
||||
(rows-length object))
|
||||
(win-width-no-border object)))
|
||||
(rows-length object)))
|
||||
(x-count-line (- (win-width object)
|
||||
(length pages-count-line)
|
||||
1))
|
||||
(y-count-line (1- (win-height object))))
|
||||
(print-text object
|
||||
pages-count-line
|
||||
(text-ellipsis pages-count-line (win-width-no-border object))
|
||||
x-count-line
|
||||
y-count-line)))))))
|
||||
y-count-line))))))))
|
||||
|
||||
(defgeneric resync-rows-db (object &key redraw)
|
||||
(:documentation "Synchronize information table slot of `object` with
|
||||
|
|
Loading…
Reference in New Issue