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

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

[elpa] master 1a9f0b8 14/78: company-tng: Kill local overlay variable af


From: Dmitry Gutov
Subject: [elpa] master 1a9f0b8 14/78: company-tng: Kill local overlay variable after completion is done
Date: Sun, 18 Feb 2018 07:40:13 -0500 (EST)

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

    company-tng: Kill local overlay variable after completion is done
    
    The overlay is recreated each time a completion starts, no need to keep it 
after
    the completion is done.
---
 company-tng.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company-tng.el b/company-tng.el
index 48d8e4f..c603d50 100644
--- a/company-tng.el
+++ b/company-tng.el
@@ -86,7 +86,8 @@ confirm the selection and finish the completion."
        (overlay-put ov 'display (and company-selection-changed selected))))
     (hide
      (when company-tng--overlay
-       (delete-overlay company-tng--overlay))
+       (delete-overlay company-tng--overlay)
+       (kill-local-variable 'company-tng--overlay))
      (advice-remove 'company-select-next 'company-tng--allow-unselected)
      (advice-remove 'company-fill-propertize 
'company-tng--adjust-tooltip-highlight))
     (pre-command



reply via email to

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