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

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

[elpa] master 044307d 116/167: ivy.el (ivy--sort-files-by-date): Fix due


From: Oleh Krehel
Subject: [elpa] master 044307d 116/167: ivy.el (ivy--sort-files-by-date): Fix due to destructive cl-sort
Date: Tue, 08 Dec 2015 10:50:24 +0000

branch: master
commit 044307ddcb22132a1938860b70b825118c83d91b
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy--sort-files-by-date): Fix due to destructive cl-sort
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 3dbfd82..7eb3898 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1729,7 +1729,7 @@ The alist VAL is a sorting function with the signature of
 (defun ivy--sort-files-by-date (_name candidates)
   "Re-soft CANDIDATES according to file modification date."
   (let ((default-directory ivy--directory))
-    (cl-sort candidates
+    (cl-sort (copy-sequence candidates)
              (lambda (f1 f2)
                (time-less-p
                 (nth 5 (file-attributes f2))



reply via email to

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