diff --git a/jupyter-repl.el b/jupyter-repl.el index 7296ea3..c529757 100644 --- a/jupyter-repl.el +++ b/jupyter-repl.el @@ -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'?"