ein-company: Hotfix for #478

Do no run ein company backend unless we can find a kernel to do completion
against.
This commit is contained in:
John Miller 2019-03-05 21:50:51 -06:00
parent b790c749d4
commit bf1bcf12cf

View file

@ -96,6 +96,7 @@
(interactive (company-begin-backend 'ein:company-backend))
(prefix (and (or (eq major-mode 'ein:notebook-multilang-mode)
(boundp 'ein:%connect%))
(ein:get-kernel)
(ein:object-at-point)))
(annotation (let ((kernel (ein:get-kernel)))
(ein:aif (gethash arg (ein:$kernel-oinfo-cache kernel))