mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Do not try dot-complete when in string literal etc.
This commit is contained in:
parent
fe682db22d
commit
e5b53e5043
1 changed files with 3 additions and 3 deletions
|
@ -38,8 +38,7 @@
|
|||
(defun ein:jedi--completer-complete ()
|
||||
(let ((d (deferred:new #'identity))
|
||||
(kernel (ein:get-kernel)))
|
||||
(if (and (ein:kernel-live-p kernel)
|
||||
(not (ac-cursor-on-diable-face-p)))
|
||||
(if (ein:kernel-live-p kernel)
|
||||
(ein:completer-complete
|
||||
kernel
|
||||
:callbacks
|
||||
|
@ -75,7 +74,8 @@
|
|||
"Insert \".\" and run `ein:jedi-complete'."
|
||||
(interactive)
|
||||
(insert ".")
|
||||
(ein:jedi-complete :expand nil))
|
||||
(unless (ac-cursor-on-diable-face-p)
|
||||
(ein:jedi-complete :expand nil)))
|
||||
|
||||
(defun ein:jedi-complete-on-dot-install (map)
|
||||
(ein:complete-on-dot-install map #'ein:jedi-dot-complete))
|
||||
|
|
Loading…
Add table
Reference in a new issue