mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
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'.
This commit is contained in:
parent
991600a82c
commit
cd7dd3e675
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user