mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Prevent wrong-type error on +company/complete
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user