branch: master
commit 23f930b0f99f72b799329acaf92649900c5c3cd4
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    Make company-capf--current-completion-data buffer-local
    
    #845
    
    Hopefully no backend returns big enough data for memory usage to be a 
problem.
---
 company-capf.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company-capf.el b/company-capf.el
index 979f80b..4cc8a90 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -36,7 +36,8 @@
 
 ;; FIXME: Provide a way to save this info once in Company itself
 ;; (https://github.com/company-mode/company-mode/pull/845).
-(defvar company-capf--current-completion-data nil
+;; FIXME: What about memory usage?
+(defvar-local company-capf--current-completion-data nil
   "Value last returned by `company-capf' when called with `candidates'.
 For most properties/actions, this is just what we need: the exact values
 that accompanied the completion table that's currently is use.")

Reply via email to