diff options
author | Gerd Moellmann <[email protected]> | 2001-03-28 09:28:15 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 2001-03-28 09:28:15 +0000 |
commit | 719349f6d0e464d4f71963b87f6bfa08ac630aa7 (patch) | |
tree | f65c4de416fafefa06cfdb0676878be767ec5bfe /lisp | |
parent | 607ec83c511d62037a1dfc5aec2f9fd5e3a57558 (diff) |
(read-passwd): Clear command history after each
character entered. From: Stephen Gildea <[email protected]>.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/subr.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 1a2ac5df1c..eb55b416a9 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 "")))) |