summaryrefslogtreecommitdiff
path: root/lisp/ansi-color.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-02-22 16:47:38 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-02-22 16:47:38 +0100
commitf1fa35f0914f5de6d0dbfde9cd00cc7ab1b20ebd (patch)
tree6def794c920c0a54f1871d4c11caf7547b06795b /lisp/ansi-color.el
parentf8d87590592544cacbeed091f3557e02bb0e63ce (diff)
downloademacs-f1fa35f0914f5de6d0dbfde9cd00cc7ab1b20ebd.tar.gz
emacs-f1fa35f0914f5de6d0dbfde9cd00cc7ab1b20ebd.tar.bz2
emacs-f1fa35f0914f5de6d0dbfde9cd00cc7ab1b20ebd.zip
Fix ANSI coloring problem in large outputs in eshell
* lisp/ansi-color.el (ansi-color-apply-on-region): Ensure that we fontize from where we left off, and don't skip to the end of the region (bug#46332).
Diffstat (limited to 'lisp/ansi-color.el')
-rw-r--r--lisp/ansi-color.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el
index e5bfccdb8ba..44dc0351d45 100644
--- a/lisp/ansi-color.el
+++ b/lisp/ansi-color.el
@@ -429,7 +429,8 @@ being deleted."
;; positions that overlap regions previously colored; these
;; `codes' should not be applied to that overlap, so we need
;; to know where they should really start.
- (setq ansi-color-context-region (if codes (list codes end-marker)))))
+ (setq ansi-color-context-region
+ (if codes (list codes (copy-marker (point)))))))
;; Clean up our temporary markers.
(unless (eq start-marker (cadr ansi-color-context-region))
(set-marker start-marker nil))