From 719349f6d0e464d4f71963b87f6bfa08ac630aa7 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 28 Mar 2001 09:28:15 +0000 Subject: [PATCH] (read-passwd): Clear command history after each character entered. From: Stephen Gildea . --- lisp/subr.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/subr.el b/lisp/subr.el index 1a2ac5df1cd..eb55b416a92 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -923,6 +923,7 @@ Optional DEFAULT is a default password to use instead of empty input." (make-string (length pass) ?.)) (setq c (read-char-exclusive nil t)) (and (/= c ?\r) (/= c ?\n) (/= c ?\e))) + (clear-this-command-keys) (if (= c ?\C-u) (progn (and (arrayp pass) (fillarray pass ?\0)) @@ -938,7 +939,6 @@ Optional DEFAULT is a default password to use instead of empty input." (let ((new-pass (substring pass 0 -1))) (and (arrayp pass) (fillarray pass ?\0)) (setq pass new-pass)))))) - (clear-this-command-keys) (message nil) (or pass default "")))) -- 2.11.4.GIT