From 0c55f12dec06eac9744e88648d0e202bdd88552d Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sun, 2 Jun 2024 13:07:10 -0700 Subject: [PATCH] Check for a real process when trying to find password prompts in Eshell * lisp/eshell/esh-mode.el (eshell-watch-for-password-prompt): Use 'eshell-head-process'. (cherry picked from commit cd7dd3e675ef2e3ae6e30ee70523ceb7f1fd1d67) --- lisp/eshell/esh-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/eshell/esh-mode.el b/lisp/eshell/esh-mode.el index ea2ccb08be1..e6f3cb5f6ad 100644 --- a/lisp/eshell/esh-mode.el +++ b/lisp/eshell/esh-mode.el @@ -952,7 +952,7 @@ buffer's process if STRING contains a password prompt defined by `eshell-password-prompt-regexp'. This function could be in the list `eshell-output-filter-functions'." - (when eshell-foreground-command + (when (eshell-head-process) (save-excursion (let ((case-fold-search t)) (goto-char eshell-last-output-block-begin) -- 2.39.5