]> code.delx.au - gnu-emacs-elpa/blobdiff - company.el
Fix error on already completed candidates.
[gnu-emacs-elpa] / company.el
index 0c0aacb190d150b78d89b9183977d411a8eadab2..b30bc8fcb99e4fe395abb45a51bd83685552d3f7 100644 (file)
@@ -1038,9 +1038,8 @@ can retrieve meta-data for them."
         (return c)))))
 
 (defun company-begin ()
-  (setq company-candidates
-        (or (and company-candidates (company--continue))
-            (and (company--should-complete) (company--begin-new))))
+  (or (and company-candidates (company--continue))
+      (and (company--should-complete) (company--begin-new)))
   (when company-candidates
     (when (and company-end-of-buffer-workaround (eobp))
       (save-excursion (insert "\n"))