                ;; All fits in a single row.
                (values 1 nil))
               (t
-               (lusty--compute-optimal-layout-inner lengths-v
-                                                    separator-length)))
+               (lusty--compute-optimal-row-count lengths-v
+                                                 separator-length)))
       (let ((n-columns 0)
             (column-widths '()))
 

                lengths-v truncated-p)))))

;; Returns number of rows and whether this truncates the entries.
(defun* lusty--compute-optimal-layout-inner (lengths-v separator-length)
  (let* ((n-items (length lengths-v))
         (max-visible-rows (1- (lusty-max-window-height)))
         (available-width (lusty-max-window-width))

                  col-start-index col-end-index split-factor
                  lengths-v lengths-h)))

            (incf total-width column-width)
            (incf total-width separator-length))

