]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/company-statistics/company-statistics.el
Merge commit '50127e91c39a8c72eb2ea1ffadf708f31699cf84'
[gnu-emacs-elpa] / packages / company-statistics / company-statistics.el
index a3fef235a926dc8a75c0edf614efd363993ef83d..d0e96b0394fd90e17381bd4534c580ea97162904 100644 (file)
@@ -4,7 +4,7 @@
 
 ;; Author: Ingo Lohmar <i.lohmar@gmail.com>
 ;; URL: https://github.com/company-mode/company-statistics
-;; Version: 0.1
+;; Version: 0.1.1
 ;; Keywords: abbrev, convenience, matching
 ;; Package-Requires: ((emacs "24.3") (company "0.8.5"))
 
@@ -153,7 +153,8 @@ number)."
     (write-file company-statistics-file)))
 
 (defun company-statistics--maybe-save ()
-  (when company-statistics-auto-save
+  (when (and (company-statistics--initialized-p)
+             company-statistics-auto-save)
     (company-statistics--save)))
 
 (defun company-statistics--load ()