From 3c6b45e53f4c9ec25cdca153158ce432b9f3f9c2 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Tue, 18 Sep 2018 12:25:07 -0500 Subject: [PATCH] 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. --- jupyter-repl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'?"