branch: master commit 1a9f0b88392f7750ecac25cf9b424b0a1af69ce8 Author: Nikita Leshenko <nik...@leshenko.net> Commit: Nikita Leshenko <nik...@leshenko.net>
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