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

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

[nongnu] elpa/multiple-cursors cd967e7 343/434: Small optimization


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors cd967e7 343/434: Small optimization
Date: Sat, 7 Aug 2021 09:20:56 -0400 (EDT)

branch: elpa/multiple-cursors
commit cd967e720fa125b74b51e3f0217562d6743d12fb
Author: Sean Allred <code@seanallred.com>
Commit: Sean Allred <code@seanallred.com>

    Small optimization
    
    If we remove the ceiling entirely, we won't even enter the form that
    checks values, etc.
---
 multiple-cursors-core.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 0388631..cba6da6 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -462,8 +462,7 @@ The entries are returned in the order they are found in the 
buffer."
 (defun mc--maybe-set-killed-rectangle ()
   "Add the latest kill-ring entry for each cursor to killed-rectangle.
 So you can paste it in later with `yank-rectangle'."
-  (let ((entries (let ((mc--active-cursor-count -1))
-                   (mc--kill-ring-entries))))
+  (let ((entries (let (mc/max-cursors) (mc--kill-ring-entries))))
     (unless (mc--all-equal entries)
       (setq killed-rectangle entries))))
 



reply via email to

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