Function: ghostel--line-mode-on-live-edge-p
ghostel--line-mode-on-live-edge-p is a natively compiled function
defined in ghostel-line-mode.el.
Signature
(ghostel--line-mode-on-live-edge-p WINDOW)
Documentation
Non-nil if WINDOW's point rides the live edge of its ghostel buffer.
The live edge is the input region, the terminal cursor, or point-max.
WINDOW's buffer must be current.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel--line-mode-on-live-edge-p (window)
"Non-nil if WINDOW's point rides the live edge of its ghostel buffer.
The live edge is the input region, the terminal cursor, or `point-max'.
WINDOW's buffer must be current."
(let ((wp (window-point window)))
(or (and (markerp ghostel--line-input-start)
(marker-position ghostel--line-input-start)
(>= wp ghostel--line-input-start)
(<= wp ghostel--line-input-end))
(and ghostel--cursor-char-pos
(= wp ghostel--cursor-char-pos))
(= wp (point-max)))))