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

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

[elpa] master eaddef4 22/78: company-tng: Remove redundant call to overl


From: Dmitry Gutov
Subject: [elpa] master eaddef4 22/78: company-tng: Remove redundant call to overlay-put
Date: Sun, 18 Feb 2018 07:40:14 -0500 (EST)

branch: master
commit eaddef478b748bbda87e1420b5e0cac50c16fad9
Author: Nikita Leshenko <address@hidden>
Commit: Nikita Leshenko <address@hidden>

    company-tng: Remove redundant call to overlay-put
    
    Was left there by mistake, it's not needed
    
    Fixes: 66a9e65 (company-tng: Use 'after-string when the prefix is empty)
---
 company-tng.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/company-tng.el b/company-tng.el
index b43a196..f4801ba 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -88,8 +88,7 @@ confirm the selection and finish the completion."
        (move-overlay ov (- (point) prefix) (point))
        (overlay-put ov
                     (if (= prefix 0) 'after-string 'display)
-                    (and company-selection-changed selected))
-       (overlay-put ov 'display (and company-selection-changed selected))))
+                    (and company-selection-changed selected))))
     (hide
      (when company-tng--overlay
        (delete-overlay company-tng--overlay)



reply via email to

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