mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 13:03:03 +00:00
Changed mc/furthest-cursor-after(before)-point to check if mark is active.
This commit is contained in:
parent
2d6ffce4c9
commit
c90bb624db
@ -55,8 +55,8 @@
|
|||||||
beg))
|
beg))
|
||||||
|
|
||||||
(defun mc/furthest-cursor-before-point ()
|
(defun mc/furthest-cursor-before-point ()
|
||||||
(let ((beg (min (mark) (point)))
|
(let ((beg (if mark-active (min (mark) (point)) (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)
|
||||||
(setq beg (mc/cursor-beg cursor))
|
(setq beg (mc/cursor-beg cursor))
|
||||||
@ -64,8 +64,8 @@
|
|||||||
furthest))
|
furthest))
|
||||||
|
|
||||||
(defun mc/furthest-cursor-after-point ()
|
(defun mc/furthest-cursor-after-point ()
|
||||||
(let ((end (max (mark) (point)))
|
(let ((end (if mark-active (max (mark) (point)) (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)
|
||||||
(setq end (mc/cursor-end cursor))
|
(setq end (mc/cursor-end cursor))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user