Function: evil-line-position
evil-line-position is a byte-compiled function defined in
evil-common.el.
Signature
(evil-line-position LINE &optional COLUMN)
Documentation
Return the position of LINE.
If COLUMN is specified, return its position on the line. A negative number means the end of the line.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-line-position (line &optional column)
"Return the position of LINE.
If COLUMN is specified, return its position on the line.
A negative number means the end of the line."
(save-excursion
(goto-char (point-min))
(forward-line (1- line))
(when (numberp column)
(if (< column 0)
(forward-line)
(move-to-column column)))
(point)))