]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ANSI coloring problem in large outputs in eshell
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 22 Feb 2021 15:47:38 +0000 (16:47 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 22 Feb 2021 15:47:38 +0000 (16:47 +0100)
* 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).

lisp/ansi-color.el

index e5bfccdb8ba40d78d327fed851277c923ac25d2d..44dc0351d45411fd647f609d23bc29285cb51e3d 100644 (file)
@@ -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))