mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Handle edge case when obtaining completion prefix
This commit is contained in:
parent
9cd52d25c3
commit
6ca612168a
1 changed files with 3 additions and 2 deletions
|
@ -1550,8 +1550,9 @@ begiining of the symbol at point to look for a match of RE."
|
|||
|
||||
(defun jupyter-completion-number-p ()
|
||||
"Return non-nil if the text before `point' may be a floating point number."
|
||||
(and (or (<= ?0 (char-before (point)) ?9)
|
||||
(eq (char-before (point)) ?.))
|
||||
(and (char-before)
|
||||
(or (<= ?0 (char-before) ?9)
|
||||
(eq (char-before) ?.))
|
||||
(save-excursion
|
||||
(skip-syntax-backward "w.")
|
||||
(looking-at-p "[0-9]+\\.?[0-9]*"))))
|
||||
|
|
Loading…
Add table
Reference in a new issue