]> code.delx.au - gnu-emacs-elpa/blobdiff - company.el
Fix WRT `keep-prefix'
[gnu-emacs-elpa] / company.el
index b444493c48d1390772e69b2ed205d8d1a071f9f4..c1671aac66558872ea263836bcafae3384528b35 100644 (file)
@@ -2552,7 +2552,8 @@ Returns a negative number if the tooltip should be displayed above point."
 (defun company--show-inline-p ()
   (and (not (cdr company-candidates))
        company-common
-       (string-prefix-p company-prefix company-common)))
+       (or (eq (company-call-backend 'ignore-case) 'keep-prefix)
+           (string-prefix-p company-prefix company-common))))
 
 ;;; echo ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;