Function: doom-modeline-fix-anzu-count

doom-modeline-fix-anzu-count is a natively compiled function defined in doom-modeline-segments.el.

Signature

(doom-modeline-fix-anzu-count POSITIONS HERE)

Documentation

Calculate anzu count via POSITIONS and HERE.

Source Code

;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-segments.el
;; `anzu' and `evil-anzu' expose current/total state that can be displayed in the
;; mode-line.
(defun doom-modeline-fix-anzu-count (positions here)
  "Calculate anzu count via POSITIONS and HERE."
  (cl-loop with i = 0
           for (start . end) in positions
           do (cl-incf i)
           when (and (>= here start) (<= here end))
           return i
           finally return 0))