diff options
Diffstat (limited to 'lisp/ansi-color.el')
-rw-r--r-- | lisp/ansi-color.el | 3 |
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)) |