1
0
Fork 0

- prevented printing line count for empty row window.

This commit is contained in:
cage 2022-04-16 17:54:57 +02:00
parent 9b724d2639
commit 1e9fecc599
1 changed files with 14 additions and 14 deletions

View File

@ -468,20 +468,20 @@ this exact quantity would go beyond the length or rows or zero."
x y x y
:bgcolor (normal-bg row) :bgcolor (normal-bg row)
:fgcolor (normal-fg row)))) :fgcolor (normal-fg row))))
(when (> (rows-length object) 0)
(let* ((current-selected (1+ (row-selected-index object))) (let* ((current-selected (1+ (row-selected-index object)))
(pages-count-line (text-ellipsis (format nil (pages-count-line (format nil
(_ "line ~a of ~a") (_ "line ~a of ~a")
current-selected current-selected
(rows-length object)) (rows-length object)))
(win-width-no-border object)))
(x-count-line (- (win-width object) (x-count-line (- (win-width object)
(length pages-count-line) (length pages-count-line)
1)) 1))
(y-count-line (1- (win-height object)))) (y-count-line (1- (win-height object))))
(print-text object (print-text object
pages-count-line (text-ellipsis pages-count-line (win-width-no-border object))
x-count-line x-count-line
y-count-line))))))) y-count-line))))))))
(defgeneric resync-rows-db (object &key redraw) (defgeneric resync-rows-db (object &key redraw)
(:documentation "Synchronize information table slot of `object` with (:documentation "Synchronize information table slot of `object` with