]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix prompt colors in comint-snapshot-last-prompt
authormiha <miha@kamnitnik.top>
Sun, 19 Dec 2021 11:02:11 +0000 (12:02 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 19 Dec 2021 11:02:11 +0000 (12:02 +0100)
* lisp/comint.el (comint-snapshot-last-prompt): Fix colorization
of the prompt (bug#11883).

lisp/comint.el

index 5f99f560cf3785c3ee12ee2dc6f6153dad79c2b4..3decb80ff0b7d420c4c212b596b85d58f2801d5d 100644 (file)
@@ -2036,7 +2036,7 @@ the start, the cdr to the end of the last prompt recognized.")
 Freezes the `font-lock-face' text property in place."
   (when comint-last-prompt
     (with-silent-modifications
-      (font-lock-prepend-text-property
+      (font-lock-append-text-property
        (car comint-last-prompt)
        (cdr comint-last-prompt)
        'font-lock-face 'comint-highlight-prompt))