Variable: evil-visual-direction

evil-visual-direction is a buffer-local variable defined in evil-vars.el.

Documentation

Whether point follows mark in Visual state.

Negative if point precedes mark, otherwise positive. See also the function evil-visual-direction(var)/evil-visual-direction(fun).

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-vars.el
;; we could infer the direction by comparing `evil-visual-mark'
;; and `evil-visual-point', but destructive operations may
;; displace the markers
(evil-define-local-var evil-visual-direction 0
  "Whether point follows mark in Visual state.
Negative if point precedes mark, otherwise positive.
See also the function `evil-visual-direction'.")