emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 01/05: company--insert-candidate: Insert before overlays that beg


From: Dmitry Gutov
Subject: [elpa] 01/05: company--insert-candidate: Insert before overlays that begin at point
Date: Sun, 14 Sep 2014 07:06:23 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit a3cd0d657768bc9e07a30b0d2ff7c578652a96e8
Author: Dmitry Gutov <address@hidden>
Date:   Sun Sep 14 00:33:06 2014 +0400

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/company.el b/company.el
index dab54e6..79b72d5 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]