]> code.delx.au - gnu-emacs-elpa/commitdiff
Prevent accidental continue when moving point.
authorNikolaj Schumacher <git@nschum.de>
Wed, 15 Apr 2009 20:38:32 +0000 (22:38 +0200)
committerNikolaj Schumacher <git@nschum.de>
Fri, 17 Apr 2009 09:14:03 +0000 (11:14 +0200)
company.el

index 1c6af8b84a1a7d2a14d7d28d5e6a831746743542..9660b8644afff1bd9dc70a43792d56812454f625 100644 (file)
@@ -772,9 +772,8 @@ keymap during active completions (`company-active-map'):
       company-candidates)))
 
 (defun company-begin ()
-  (when (if company-candidates
-            (not (company-continue))
-          (company--should-complete))
+  (when (and (not (and company-candidates (company-continue)))
+             (company--should-complete))
     (let (prefix)
       (dolist (backend (if company-backend
                            ;; prefer manual override