emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors c90bb62 339/434: Changed mc/furthest-curs


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors c90bb62 339/434: Changed mc/furthest-cursor-after(before)-point to check if mark is active.
Date: Sat, 7 Aug 2021 09:20:55 -0400 (EDT)

branch: elpa/multiple-cursors
commit c90bb624dbd0e7005afafd5ae7fec2602fccb1ec
Author: Justin Dove <dove@mit.edu>
Commit: Justin Dove <dove@mit.edu>

    Changed mc/furthest-cursor-after(before)-point to check if mark is active.
---
 mc-mark-more.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mc-mark-more.el b/mc-mark-more.el
index eed0035..0069dd3 100644
--- a/mc-mark-more.el
+++ b/mc-mark-more.el
@@ -55,8 +55,8 @@
     beg))
 
 (defun mc/furthest-cursor-before-point ()
-  (let ((beg (min (mark) (point)))
-        furthest)
+  (let ((beg (if mark-active (min (mark) (point)) (point)))
+       furthest)
     (mc/for-each-fake-cursor
      (when (< (mc/cursor-beg cursor) beg)
        (setq beg (mc/cursor-beg cursor))
@@ -64,8 +64,8 @@
     furthest))
 
 (defun mc/furthest-cursor-after-point ()
-  (let ((end (max (mark) (point)))
-        furthest)
+  (let ((end (if mark-active (max (mark) (point)) (point)))
+       furthest)
     (mc/for-each-fake-cursor
      (when (> (mc/cursor-end cursor) end)
        (setq end (mc/cursor-end cursor))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]