refactor(lib): doom-region-end: extract marker

This commit is contained in:
Henrik Lissner 2024-03-11 03:26:01 -04:00
parent 61327bf777
commit 559171575e
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -88,9 +88,10 @@ Uses `evil-visual-beginning' if available."
"Return end position of selection. "Return end position of selection.
Uses `evil-visual-end' if available." Uses `evil-visual-end' if available."
(declare (side-effect-free t)) (declare (side-effect-free t))
(if (and (bound-and-true-p evil-local-mode) (or (and (bound-and-true-p evil-local-mode)
(evil-visual-state-p)) (evil-visual-state-p)
evil-visual-end (markerp evil-visual-end)
(marker-position evil-visual-end))
(region-end))) (region-end)))
;;;###autoload ;;;###autoload