jupyter-code-context: Handle all values of parser state

This commit is contained in:
Nathaniel Nicandro 2019-06-13 16:07:46 -05:00
parent 4533246173
commit e87f26dee3

View file

@ -1275,7 +1275,8 @@ If the region is active, return it. Otherwise return the line."
;; closest contiguous non-whitespace sequence of characters at the top
;; level.
(save-excursion
(goto-char (nth 1 ppss))
(when (nth 1 ppss)
(goto-char (nth 1 ppss)))
(skip-syntax-backward "->")
(skip-syntax-backward "^->")
(point))