Function: consult--count-lines

consult--count-lines is a byte-compiled function defined in consult.el.

Signature

(consult--count-lines POS)

Documentation

Move to position POS and return number of lines.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
(defun consult--count-lines (pos)
  "Move to position POS and return number of lines."
  (let ((line 1))
    (while (< (point) pos)
      (forward-line)
      (when (<= (point) pos)
        (incf line)))
    (goto-char pos)
    line))