Function: ghostel--window-on-cursor-p

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

Signature

(ghostel--window-on-cursor-p WINDOW)

Documentation

Non-nil if WINDOW's point rides the live terminal cursor.

WINDOW's buffer must be current. Riding is ghostel--pos-on-cursor-p. An active region vetoes the ride, except in a non-selected window showing the selected window's buffer.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--window-on-cursor-p (window)
  "Non-nil if WINDOW's point rides the live terminal cursor.
WINDOW's buffer must be current.  Riding is `ghostel--pos-on-cursor-p'.
An active region vetoes the ride, except in a non-selected window showing
the selected window's buffer."
  (and (not (and (region-active-p)
                 (or (eq window (selected-window))
                     (not (eq (window-buffer (selected-window))
                              (current-buffer))))))
       (ghostel--pos-on-cursor-p (window-point window))))