That fixes `company-with-candidate-inserted' to work with the way the
pseudo-tooltip overlay is now rendered (at the end of the current line).
(if (eq (company-call-backend 'ignore-case) 'keep-prefix)
(insert (company-strip-prefix candidate))
(delete-region (- (point) (length company-prefix)) (point))
- (insert candidate)))
+ (insert-before-markers candidate)))
(defmacro company-with-candidate-inserted (candidate &rest body)
"Evaluate BODY with CANDIDATE temporarily inserted.