- (let ((completion-ignore-case (company-call-backend 'ignore-case)))
- (setq company-common (company--safe-candidate
- (try-completion company-prefix company-candidates))))
- (when (eq company-common t)
- (setq company-candidates nil)))
+ (let ((completion-ignore-case (company-call-backend 'ignore-case))
+ ;; We want to support non-prefix completion, so filtering is the
+ ;; responsibility of each respective backend, not ours.
+ ;; On the other hand, we don't want to replace non-prefix input in
+ ;; `company-complete-common'.
+ (common (try-completion company-prefix company-candidates)))
+ (setq company-common (company--safe-candidate common))))