Function: ghostel-point-on-cursor-row-p

ghostel-point-on-cursor-row-p is a natively compiled function defined in ghostel.el.

Signature

(ghostel-point-on-cursor-row-p &optional POS)

Documentation

Return non-nil when POS (default point) is on the cursor's row.

Compares POS's buffer line to the terminal cursor's row (after adjusting for scrollback). Returns nil when no terminal cursor is available.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel-point-on-cursor-row-p (&optional pos)
  "Return non-nil when POS (default `point') is on the cursor's row.
Compares POS's buffer line to the terminal cursor's row (after
adjusting for scrollback).  Returns nil when no terminal cursor is
available."
  (when (and ghostel--term ghostel--cursor-pos)
    (let* ((p (or pos (point)))
           (trow (cdr ghostel--cursor-pos))
           (prow (ghostel--viewport-row-at p)))
      (and prow (= prow trow)))))