Prevent wrong-type error on +company/complete
This commit is contained in:
parent
3b69045ed4
commit
381851aab6
1 changed files with 3 additions and 2 deletions
|
@ -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."
|
"Bring up the completion popup. If only one result, complete it."
|
||||||
(interactive)
|
(interactive)
|
||||||
(require 'company)
|
(require 'company)
|
||||||
(when (/= (point)
|
(when (ignore-errors
|
||||||
(cdr (bounds-of-thing-at-point 'symbol)))
|
(/= (point)
|
||||||
|
(cdr (bounds-of-thing-at-point 'symbol))))
|
||||||
(save-excursion (insert " ")))
|
(save-excursion (insert " ")))
|
||||||
(when (and (company-manual-begin)
|
(when (and (company-manual-begin)
|
||||||
(= company-candidates-length 1))
|
(= company-candidates-length 1))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue