summaryrefslogtreecommitdiff
path: root/lisp/comint.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2020-02-25 02:22:29 +0200
committerJuri Linkov <juri@linkov.net>2020-02-25 02:22:29 +0200
commit29eb93e3c3ad98027837a11ea3433d9d9b2dfc2f (patch)
treed462583b5a42d347a08c9182eca821654f9dd245 /lisp/comint.el
parent7dfe90a666ab6b90597e3ee61c141da088da340c (diff)
downloademacs-29eb93e3c3ad98027837a11ea3433d9d9b2dfc2f.tar.gz
* lisp/comint.el (comint-redirect-setup): Guard mode-line-process (bug#39705)
Diffstat (limited to 'lisp/comint.el')
-rw-r--r--lisp/comint.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 5c521ff0fdf..ea06f8af87d 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -3641,7 +3641,7 @@ and does not normally need to be invoked by the end user or programmer."
(setq-local comint-redirect-previous-input-string "")
(setq mode-line-process
- (if mode-line-process
+ (if (and mode-line-process (stringp (elt mode-line-process 0)))
(list (concat (elt mode-line-process 0) " Redirection"))
(list ":%s Redirection")))))