]> code.delx.au - gnu-emacs-elpa/commitdiff
Fix error on already completed candidates.
authorNikolaj Schumacher <git@nschum.de>
Sat, 27 Feb 2010 12:09:01 +0000 (13:09 +0100)
committerNikolaj Schumacher <git@nschum.de>
Sat, 18 Jun 2011 12:38:31 +0000 (14:38 +0200)
Even though company-common was t, company-candidates was set to non-nil
again.

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"))