Skip to content

Commit 6ec000f

Browse files
committed
Fix handling of ansi-color-context-region in display buffers
1 parent 27246cd commit 6ec000f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

jupyter-base.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ the output buffer."
328328
(jupyter-current-client ,client))
329329
(when (jupyter--reset-display-buffer-p ,reset)
330330
(erase-buffer)
331-
(set-marker jupyter-display-buffer-marker (point)))
331+
(set-marker jupyter-display-buffer-marker (point))
332+
(setq ansi-color-context-region nil))
332333
(goto-char jupyter-display-buffer-marker)
333334
(jupyter-with-control-code-handling ,@body))))))
334335

jupyter-org-client.el

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ e.g. `org-babel-get-src-block-info'."
212212
(jupyter-with-display-buffer "org-results" req
213213
(jupyter-with-insertion-bounds
214214
beg end (insert text)
215-
(when ansi-color-context-region
216-
(move-marker (cadr ansi-color-context-region) (point)))
217215
(ansi-color-apply-on-region beg end))
218216
(jupyter-display-current-buffer-reuse-window))
219217
(jupyter-org--add-result req text))))

0 commit comments

Comments
 (0)