]> code.delx.au - gnu-emacs-elpa/commitdiff
company--capf-data: Check that the cdr is cons, not data itself
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 17 Feb 2014 01:30:19 +0000 (03:30 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 17 Feb 2014 01:30:19 +0000 (03:30 +0200)
company-capf.el

index 77479aeeec70937fcde83e44abb38519dc8364c5..f1b46d90517965d74386e26cc34e28ea3cc70a0e 100644 (file)
@@ -34,7 +34,7 @@
           (data (run-hook-wrapped 'completion-at-point-functions
                                   ;; Ignore misbehaving functions.
                                   #'completion--capf-wrapper 'optimist)))
-    (when (and (consp data) (numberp (nth 1 data))) data)))
+    (when (and (consp (cdr data)) (numberp (nth 1 data))) data)))
 
 (defun company-capf (command &optional arg &rest _args)
   "`company-mode' back-end using `completion-at-point-functions'.