From 7fd900ff3a780a83422241552902cfe3c2ecb1d8 Mon Sep 17 00:00:00 2001 From: miha Date: Sun, 19 Dec 2021 12:02:11 +0100 Subject: [PATCH] Fix prompt colors in comint-snapshot-last-prompt * lisp/comint.el (comint-snapshot-last-prompt): Fix colorization of the prompt (bug#11883). --- lisp/comint.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/comint.el b/lisp/comint.el index 5f99f560cf3..3decb80ff0b 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -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)) -- 2.39.2