Fix jupyter-repl-cell-finalized-p

`point-max` is now considered the end of a cell but if the
end of a cell is `point-max`, then it is by definition
un-finalized. Also return t if the current line is not a
cell line since those parts of the buffer that are not
cells are finalized.
This commit is contained in:
Nathaniel Nicandro 2018-09-18 12:25:07 -05:00
parent bc6d067d26
commit 3c6b45e53f

View file

@ -884,7 +884,8 @@ POS defaults to `point'."
(defun jupyter-repl-cell-finalized-p ()
"Has the current cell been finalized?"
(jupyter-repl-cell-end-p (jupyter-repl-cell-end-position)))
(or (not (jupyter-repl-cell-line-p))
(/= (jupyter-repl-cell-end-position) (point-max))))
(defun jupyter-repl-client-has-manager-p ()
"Does the `jupyter-current-client' have a `jupyter-kernel-manager'?"