]> code.delx.au - gnu-emacs-elpa/commitdiff
company--preprocess-candidates: Check that all CANDIDATES are strings
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 23 May 2016 01:35:41 +0000 (04:35 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 23 May 2016 01:35:41 +0000 (04:35 +0300)
To make #516 fail faster.

company.el

index e35d7e50dd9d1f89ae7f411967722f52ab59592c..443e63819eb2490fa9189b63533ef1fbb8ee94a5 100644 (file)
@@ -1202,6 +1202,7 @@ can retrieve meta-data for them."
           (progn (setq res 'done) nil)))))
 
 (defun company--preprocess-candidates (candidates)
+  (cl-assert (cl-every #'stringp candidates))
   (unless (company-call-backend 'sorted)
     (setq candidates (sort candidates 'string<)))
   (when (company-call-backend 'duplicates)