Function: evil-mouse-start-end
evil-mouse-start-end is a byte-compiled function defined in
evil-commands.el.
Signature
(evil-mouse-start-end START END MODE)
Documentation
Return a list of region bounds based on START and END according to MODE.
If MODE is not 1 then set point to (min START END), mark to (max START END). If MODE is 1 then set point to start of word at (min START END), mark to end of word at (max START END).
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(defun evil-mouse-start-end (start end mode)
"Return a list of region bounds based on START and END according to MODE.
If MODE is not 1 then set point to (min START END), mark to (max
START END). If MODE is 1 then set point to start of word at (min
START END), mark to end of word at (max START END)."
(evil-sort start end)
(setq mode (mod mode 4))
(if (/= mode 1) (list start end)
(list
(save-excursion
(goto-char (min (point-max) (1+ start)))
(if (zerop (forward-thing evil-mouse-word -1))
(let ((bpnt (point)))
(forward-thing evil-mouse-word +1)
(if (> (point) start) bpnt (point)))
(point-min)))
(save-excursion
(goto-char end)
(1-
(if (zerop (forward-thing evil-mouse-word +1))
(let ((epnt (point)))
(forward-thing evil-mouse-word -1)
(if (<= (point) end) epnt (point)))
(point-max)))))))