jupyter-repl-eval-string: Fix out of place else condition in if

This commit is contained in:
Nathaniel Nicandro 2018-10-18 12:33:41 -05:00
parent 19c8d9c58c
commit 6d4efb9823

View file

@ -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)