From 381851aab6207f437c8022bce8a5836f697d7c55 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 26 Aug 2018 22:02:35 +0200 Subject: [PATCH] Prevent wrong-type error on +company/complete --- modules/completion/company/autoload.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/completion/company/autoload.el b/modules/completion/company/autoload.el index 4252aefe0..58326f90b 100644 --- a/modules/completion/company/autoload.el +++ b/modules/completion/company/autoload.el @@ -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))