summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Lohmar <i.lohmar@gmail.com>2014-04-07 20:07:32 +0200
committerIngo Lohmar <i.lohmar@gmail.com>2014-04-07 20:07:32 +0200
commite5553b5f4a5c66f0e6e81933de7224f5f1c7624e (patch)
tree6719bfd5121a3b3aa36eae3c4f61c424c932e1b6
parentc9395db0cc08dd11c16d67c5289317e67b8a4123 (diff)
Fix enabling mode without saved cache file
-rw-r--r--company-statistics.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/company-statistics.el b/company-statistics.el
index b206475..57cf092 100644
--- a/company-statistics.el
+++ b/company-statistics.el
@@ -252,10 +252,10 @@ configuration. You can customize this behavior with
(if company-statistics-mode
(progn
(unless (company-statistics--initialized-p)
- (if company-statistics-auto-restore
- (progn
- (company-statistics--load) ;maybe of different size
- (company-statistics--log-resize nil company-statistics-size))
+ (if (and company-statistics-auto-restore
+ (company-statistics--load))
+ ;; maybe of different size
+ (company-statistics--log-resize nil company-statistics-size)
(company-statistics--init)))
(add-to-list 'company-transformers
'company-sort-by-statistics 'append)