Function: treemacs--lines-in-window

treemacs--lines-in-window is a byte-compiled function defined in treemacs-rendering.el.

Signature

(treemacs--lines-in-window)

Documentation

Determine the number of lines visible in the current (treemacs) window.

A simple call to something like window-screen-lines is insufficient because the height of treemacs' icons must be taken into account.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-rendering.el
(define-inline treemacs--lines-in-window ()
  "Determine the number of lines visible in the current (treemacs) window.
A simple call to something like `window-screen-lines' is insufficient because
the height of treemacs' icons must be taken into account."
  (declare (side-effect-free t))
  (inline-quote
   (/ (- (window-pixel-height) (window-mode-line-height))
      (max treemacs--icon-size (frame-char-height)))))