mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Revert back to correct behavior
This commit is contained in:
parent
85efbf9c04
commit
2a602246de
1 changed files with 7 additions and 6 deletions
|
@ -716,12 +716,13 @@ POS defaults to `point'."
|
|||
|
||||
(defun jupyter-repl-cell-line-p ()
|
||||
"Is the current line a cell input line?"
|
||||
(save-excursion
|
||||
(unless (= (point) (jupyter-repl-cell-beginning-position))
|
||||
(jupyter-repl-previous-cell))
|
||||
(<= (jupyter-repl-cell-code-beginning-position)
|
||||
(point)
|
||||
(jupyter-repl-cell-code-end-position))))
|
||||
(let ((pos (point)))
|
||||
(save-excursion
|
||||
(unless (= pos (jupyter-repl-cell-beginning-position))
|
||||
(jupyter-repl-previous-cell))
|
||||
(<= (jupyter-repl-cell-code-beginning-position)
|
||||
pos
|
||||
(jupyter-repl-cell-code-end-position)))))
|
||||
|
||||
(defun jupyter-repl-cell-finalized-p ()
|
||||
"Has the current cell been finalized?
|
||||
|
|
Loading…
Add table
Reference in a new issue