Function: ghostel--soft-wrap-line-beginning
ghostel--soft-wrap-line-beginning is a natively compiled function
defined in ghostel-links.el.
Signature
(ghostel--soft-wrap-line-beginning POS LIMIT)
Documentation
Return the start of POS's logical line, crossing soft-wrap newlines.
A line the terminal split to fit its width continues on the next
buffer line; the newline between them carries ghostel-wrap.
LIMIT caps how many rows the search walks back.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-links.el
(defun ghostel--soft-wrap-line-beginning (pos limit)
"Return the start of POS's logical line, crossing soft-wrap newlines.
A line the terminal split to fit its width continues on the next
buffer line; the newline between them carries `ghostel-wrap'.
LIMIT caps how many rows the search walks back."
(save-excursion
(goto-char pos)
(beginning-of-line)
(let ((rows 0))
(while (and (< rows limit)
(> (point) (point-min))
(get-text-property (1- (point)) 'ghostel-wrap))
(forward-line -1)
(setq rows (1+ rows))))
(point)))