Fix prompt colors in comint-snapshot-last-prompt

* lisp/comint.el (comint-snapshot-last-prompt): Fix colorization
of the prompt (bug#11883).
This commit is contained in:
miha 2021-12-19 12:02:11 +01:00 committed by Lars Ingebrigtsen
parent 6f2351a486
commit 7fd900ff3a

View 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))