Changed mc/furthest-cursor-after(before)-point to check if mark is active.

This commit is contained in:
Justin Dove 2015-06-07 18:06:55 -04:00
parent 2d6ffce4c9
commit c90bb624db

View File

@ -55,7 +55,7 @@
beg))
(defun mc/furthest-cursor-before-point ()
(let ((beg (min (mark) (point)))
(let ((beg (if mark-active (min (mark) (point)) (point)))
furthest)
(mc/for-each-fake-cursor
(when (< (mc/cursor-beg cursor) beg)
@ -64,7 +64,7 @@
furthest))
(defun mc/furthest-cursor-after-point ()
(let ((end (max (mark) (point)))
(let ((end (if mark-active (max (mark) (point)) (point)))
furthest)
(mc/for-each-fake-cursor
(when (> (mc/cursor-end cursor) end)