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

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

[nongnu] elpa/multiple-cursors 16add89 211/434: Bugfix for sort/reverse


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors 16add89 211/434: Bugfix for sort/reverse regions w/similar contents
Date: Sat, 7 Aug 2021 09:20:28 -0400 (EDT)

branch: elpa/multiple-cursors
commit 16add89d29db7a0b0e106534aad7e1b1935a9774
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>

    Bugfix for sort/reverse regions w/similar contents
---
 mc-separate-operations.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mc-separate-operations.el b/mc-separate-operations.el
index f15dc7d..17d37c0 100644
--- a/mc-separate-operations.el
+++ b/mc-separate-operations.el
@@ -48,9 +48,9 @@
   (let (strings)
     (save-excursion
       (mc/for-each-cursor-ordered
-       (add-to-list 'strings (buffer-substring-no-properties
-                              (mc/cursor-beg cursor)
-                              (mc/cursor-end cursor))))strings)
+       (setq strings (cons (buffer-substring-no-properties
+                            (mc/cursor-beg cursor)
+                            (mc/cursor-end cursor)) strings))))
     (nreverse strings)))
 
 (defvar mc--strings-to-replace nil)



reply via email to

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