branch: master
commit 30e8b83804231c46ccff8ef0b07191663948376f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-partial): Remove unwarranted downcase
    
    * ivy-test.el (ivy-partial): Add test.
    
    Fixes #1036
---
 ivy-test.el | 10 ++++++++++
 ivy.el      |  3 ---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ivy-test.el b/ivy-test.el
index bfde0ae..2c167a2 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -54,6 +54,16 @@
               (kbd keys)))
     ivy-result))
 
+(ert-deftest ivy-partial ()
+  (should (equal
+           (ivy-with '(ivy-read "test: " '("case" "Case"))
+                     "ca TAB C-m")
+           "case"))
+  (should (equal
+           (ivy-with '(ivy-read "test: " '("case" "Case"))
+                     "Ca TAB C-m")
+           "Case")))
+
 (ert-deftest ivy-read ()
   (should (equal
            (ivy-with '(ivy-read "pattern: " '("blue" "yellow"))
diff --git a/ivy.el b/ivy.el
index 6755478..9cb862f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -805,9 +805,6 @@ If the text hasn't changed as a result, forward to 
`ivy-alt-done'."
                                             (when i
                                               (substring str i))))
                                         ivy--old-cands)))))
-    (when (and (eq ivy-case-fold-search 'auto)
-               (stringp new))
-      (setq new (downcase new)))
     (cond ((eq new t) nil)
           ((string= new ivy-text) nil)
           (new

Reply via email to