branch: master
commit dd1bf1e2696a6e7e07037b1eea0167b6e2c0d269
Author: Georgiy Tugai <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Fix interaction of ivy-partial and case-folding
    
    ivy-partial was sometimes over-eager when case-folding is off (or auto,
    in the presence of a capital letter).
    
    Fixes #1019
---
 ivy.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 4bfe058..5beaab0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -756,7 +756,10 @@ If the text hasn't changed as a result, forward to 
`ivy-alt-done'."
   (interactive)
   (let* ((parts (or (split-string ivy-text " " t) (list "")))
          (postfix (car (last parts)))
-         (completion-ignore-case t)
+         (case-fold-search (and ivy-case-fold-search
+                                    (or (eq ivy-case-fold-search 'always)
+                                        (string= ivy-text (downcase 
ivy-text)))))
+         (completion-ignore-case case-fold-search)
          (startp (string-match "^\\^" postfix))
          (new (try-completion (if startp
                                   (substring postfix 1)

Reply via email to