Remove redundant check of use-region-p that is already done in use-region-beginning/end

This commit is contained in:
Gene Goykhman
2026-04-19 01:28:55 -04:00
committed by Magnar Sveen
parent 6f984c6e1d
commit 94b8b07a4b
+2 -2
View File
@@ -56,7 +56,7 @@
beg))
(defun mc/furthest-cursor-before-point ()
(let ((beg (if (use-region-p) (use-region-beginning) (point)))
(let ((beg (or (use-region-beginning) (point)))
furthest)
(mc/for-each-fake-cursor
(when (< (mc/cursor-beg cursor) beg)
@@ -65,7 +65,7 @@
furthest))
(defun mc/furthest-cursor-after-point ()
(let ((end (if (use-region-p) (use-region-end) (point)))
(let ((end (or (use-region-end) (point)))
furthest)
(mc/for-each-fake-cursor
(when (> (mc/cursor-end cursor) end)