]> code.delx.au - gnu-emacs-elpa/commitdiff
company--begin-new: Reorder statements
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 17 Jun 2015 20:18:02 +0000 (23:18 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 17 Jun 2015 20:18:02 +0000 (23:18 +0300)
company.el

index ed5e14c2fb9e94c58d44282e305c17738e28a81e..9160c0def77dde425f15b0f304e57d868438d7a8 100644 (file)
@@ -1474,11 +1474,11 @@ from the rest of the back-ends in the group, if any, will be left at the end."
                 c (company-calculate-candidates company-prefix))
           (if (not (consp c))
               (progn
+                (when company--manual-action
+                  (message "No completion found"))
                 ;; t means complete/unique.
                 ;; Run the hooks anyway, to e.g. clear the cache.
-                (company-cancel 'unique)
-                (when company--manual-action
-                  (message "No completion found")))
+                (company-cancel 'unique))
             (when company--manual-action
               (setq company--manual-prefix prefix))
             (company-update-candidates c)