mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-05-05 15:28:18 +00:00
Remove redundant check of use-region-p that is already done in use-region-beginning/end
This commit is contained in:
committed by
Magnar Sveen
parent
6f984c6e1d
commit
94b8b07a4b
+2
-2
@@ -56,7 +56,7 @@
|
|||||||
beg))
|
beg))
|
||||||
|
|
||||||
(defun mc/furthest-cursor-before-point ()
|
(defun mc/furthest-cursor-before-point ()
|
||||||
(let ((beg (if (use-region-p) (use-region-beginning) (point)))
|
(let ((beg (or (use-region-beginning) (point)))
|
||||||
furthest)
|
furthest)
|
||||||
(mc/for-each-fake-cursor
|
(mc/for-each-fake-cursor
|
||||||
(when (< (mc/cursor-beg cursor) beg)
|
(when (< (mc/cursor-beg cursor) beg)
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
furthest))
|
furthest))
|
||||||
|
|
||||||
(defun mc/furthest-cursor-after-point ()
|
(defun mc/furthest-cursor-after-point ()
|
||||||
(let ((end (if (use-region-p) (use-region-end) (point)))
|
(let ((end (or (use-region-end) (point)))
|
||||||
furthest)
|
furthest)
|
||||||
(mc/for-each-fake-cursor
|
(mc/for-each-fake-cursor
|
||||||
(when (> (mc/cursor-end cursor) end)
|
(when (> (mc/cursor-end cursor) end)
|
||||||
|
|||||||
Reference in New Issue
Block a user