Prevent wrong-type error on +company/complete

This commit is contained in:
Henrik Lissner 2018-08-26 22:02:35 +02:00
parent 3b69045ed4
commit 381851aab6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -103,8 +103,9 @@ To have BACKENDS apply to any mode that is a parent of MODES, set MODES to
"Bring up the completion popup. If only one result, complete it."
(interactive)
(require 'company)
(when (/= (point)
(cdr (bounds-of-thing-at-point 'symbol)))
(when (ignore-errors
(/= (point)
(cdr (bounds-of-thing-at-point 'symbol))))
(save-excursion (insert " ")))
(when (and (company-manual-begin)
(= company-candidates-length 1))