Revert back to correct behavior

This commit is contained in:
Nathaniel Nicandro 2018-02-06 17:45:12 -06:00
parent 85efbf9c04
commit 2a602246de

View file

@ -716,12 +716,13 @@ POS defaults to `point'."
(defun jupyter-repl-cell-line-p ()
"Is the current line a cell input line?"
(let ((pos (point)))
(save-excursion
(unless (= (point) (jupyter-repl-cell-beginning-position))
(unless (= pos (jupyter-repl-cell-beginning-position))
(jupyter-repl-previous-cell))
(<= (jupyter-repl-cell-code-beginning-position)
(point)
(jupyter-repl-cell-code-end-position))))
pos
(jupyter-repl-cell-code-end-position)))))
(defun jupyter-repl-cell-finalized-p ()
"Has the current cell been finalized?