branch: master
commit 99014172ab87e560b4c3b9e920c053fa70bfa267
Author: Tomasz KoƂodziejski <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Make sure foo/ directory goes before foo-bar/ directory
    
    Use directory-file-name.
    
    Fixes #1315
---
 ivy.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index f8a5c28..585f553 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1350,7 +1350,7 @@ This string is inserted into the minibuffer."
 Prioritize directories."
   (if (get-text-property 0 'dirp x)
       (if (get-text-property 0 'dirp y)
-          (string< x y)
+          (string< (directory-file-name x) (directory-file-name y))
         t)
     (if (get-text-property 0 'dirp y)
         nil

Reply via email to