Use jupyter-repl-insert-ansi-coded-text when appropriate

This commit is contained in:
Nathaniel Nicandro 2018-01-17 21:33:20 -06:00
parent 4a7c463931
commit dd6ec47bdb

View file

@ -817,9 +817,7 @@ lines then truncate it to something less than
(let ((text (plist-get (plist-get pl :data) :text/plain))
(line (or (plist-get pl :start) 0))))
(with-jupyter-repl-doc-buffer "pager"
(setq text (xterm-color-filter text))
(jupyter-repl-add-font-lock-properties 0 (length text) text)
(insert text)
(jupyter-repl-insert-ansi-coded-text text)
(goto-char (point-min))
(forward-line line)
(display-buffer (current-buffer) '(display-buffer-at-bottom