mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
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:
parent
b790c749d4
commit
bf1bcf12cf
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue