From b57c635ba06937878935bbe1cace5e360e6dc00d Mon Sep 17 00:00:00 2001 From: tummychow Date: Fri, 22 Sep 2017 18:26:08 -0400 Subject: [PATCH] Fix duplication in counsel-projectile If the first file in the projectile-current-project-files is also a buffer, it will appear twice in the counsel-projectile list. This is fixed by reassigning the result of the delete expression to the files list. --- counsel-projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 4e8d50d..f0b1422 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -454,7 +454,7 @@ Invokes the command referenced by file) (dolist (buffer counsel-projectile--buffers files) (when (setq file (buffer-file-name (get-buffer buffer))) - (delete (file-relative-name file root) files))))))) + (setq files (delete (file-relative-name file root) files)))))))) (defun counsel-projectile--matcher (regexp candidates) "Return REGEXP-matching CANDIDATES.