From a3cd0d657768bc9e07a30b0d2ff7c578652a96e8 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sun, 14 Sep 2014 00:33:06 +0400 Subject: [PATCH] company--insert-candidate: Insert before overlays that begin at point 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). --- company.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/company.el b/company.el index dab54e629..79b72d5aa 100644 --- a/company.el +++ b/company.el @@ -978,7 +978,7 @@ Controlled by `company-auto-complete'.") (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. -- 2.39.2