From 6d4efb9823a788086fa524fd4e728058e511aa64 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Thu, 18 Oct 2018 12:33:41 -0500 Subject: [PATCH] jupyter-repl-eval-string: Fix out of place else condition in `if` --- jupyter-repl.el | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jupyter-repl.el b/jupyter-repl.el index e28e912..2d24cba 100644 --- a/jupyter-repl.el +++ b/jupyter-repl.el @@ -2189,18 +2189,18 @@ to the above explanation." (jupyter-message-get msg :data) (jupyter-message-get msg :metadata)) (goto-char (point-min)) - (display-buffer (current-buffer)))) - (setq res (ansi-color-apply res)) - (if (cl-loop - with nlines = 0 - for c across res when (eq c ?\n) do (cl-incf nlines) - thereis (> nlines 10)) - (jupyter-repl-with-doc-buffer "result" - (insert res) - (goto-char (point-min)) (display-buffer (current-buffer))) - (if (equal res "") (message "jupyter: eval done") - (message "%s" res)))))) + (setq res (ansi-color-apply res)) + (if (cl-loop + with nlines = 0 + for c across res when (eq c ?\n) do (cl-incf nlines) + thereis (> nlines 10)) + (jupyter-repl-with-doc-buffer "result" + (insert res) + (goto-char (point-min)) + (display-buffer (current-buffer))) + (if (equal res "") (message "jupyter: eval done") + (message "%s" res))))))) :error (lambda (msg) (jupyter-with-message-content msg (traceback)