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

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

[elpa] master e5553b5 07/13: Fix enabling mode without saved cache file


From: Dmitry Gutov
Subject: [elpa] master e5553b5 07/13: Fix enabling mode without saved cache file
Date: Wed, 28 Jan 2015 13:09:08 +0000

branch: master
commit e5553b5f4a5c66f0e6e81933de7224f5f1c7624e
Author: Ingo Lohmar <address@hidden>
Commit: Ingo Lohmar <address@hidden>

    Fix enabling mode without saved cache file
---
 company-statistics.el |    8 ++++----
 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)



reply via email to

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