[Top][All Lists]

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

[elpa] master e8f9370 273/399: counsel.el (counsel-compile): nreverse re

From: Oleh Krehel
Subject: [elpa] master e8f9370 273/399: counsel.el (counsel-compile): nreverse recent history
Date: Sat, 20 Jul 2019 14:57:38 -0400 (EDT)

branch: master
commit e8f93703bf44f8c0e7299134999524c839d67bdb
Author: Alex Bennée <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-compile): nreverse recent history
    This ensures the most recent history items appears first on the
    suggestions list.
 counsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/counsel.el b/counsel.el
index 4f81731..c56487b 100644
--- a/counsel.el
+++ b/counsel.el
@@ -5464,7 +5464,7 @@ If there are non-directory files in BLDDIR we also return 
         (when (or (and srcdir (file-in-directory-p srcdir root))
                   (and blddir (file-in-directory-p blddir root)))
           (push item history))))
-    history))
+    (nreverse history)))
 (defun counsel--get-compile-candidates (&optional dir)
   "Return the list of compile commands.

reply via email to

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