branch: master
commit 5229ebeeebdac8cb90ba0f7322e6cf3958d3e28d
Author: justbur <jus...@burkett.cc>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    counsel.el (counsel-prompt-function-dir): Fix format
    
    The prompt argument was unused, which looked unintentional
    
    Fixes #425
---
 counsel.el |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/counsel.el b/counsel.el
index 49b0440..26d4b83 100644
--- a/counsel.el
+++ b/counsel.el
@@ -179,12 +179,13 @@ Update the minibuffer with the amount of lines collected 
every
 (defun counsel-prompt-function-dir (prompt)
   "Return PROMPT appended with the parent directory."
   (let ((directory counsel--git-grep-dir))
-    (format " [%s]: "
+    (format "%s [%s]: "
+            prompt
             (let ((dir-list (eshell-split-path directory)))
               (if (> (length dir-list) 3)
-                 (apply #'concat
-                        (append '("...")
-                                (cl-subseq dir-list (- (length dir-list) 3))))
+                  (apply #'concat
+                         (append '("...")
+                                 (cl-subseq dir-list (- (length dir-list) 3))))
                 directory)))))
 
 (defun counsel-delete-process ()

Reply via email to