mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
jupyter-code-context: Handle all values of parser state
This commit is contained in:
parent
4533246173
commit
e87f26dee3
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue