branch: master
commit e8f93703bf44f8c0e7299134999524c839d67bdb
Author: Alex Bennée <[email protected]>
Commit: Oleh Krehel <[email protected]>
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
BLDDIR in
(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.