mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2026-05-05 15:28:18 +00:00
Check use-region-p rather than mark-active to better support
transient-mark-mode disabled
This commit is contained in:
committed by
Magnar Sveen
parent
ddd677091a
commit
47c27f1e19
+1
-1
@@ -65,7 +65,7 @@
|
|||||||
furthest))
|
furthest))
|
||||||
|
|
||||||
(defun mc/furthest-cursor-after-point ()
|
(defun mc/furthest-cursor-after-point ()
|
||||||
(let ((end (if mark-active (max (mark) (point)) (point)))
|
(let ((end (if (use-region-p) (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