bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46609: Fix shell password prompt in minibuffer (bug 43302)


From: Eli Zaretskii
Subject: bug#46609: Fix shell password prompt in minibuffer (bug 43302)
Date: Thu, 18 Feb 2021 16:42:42 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 18 Feb 2021 12:44:32 +0100
> Cc: 46609@debbugs.gnu.org
> 
> Thanks; applied to Emacs 27 with one change:
> 
> > +    (when (string-match "[\n]+$" string)
> > +      (setq string (replace-match "" t t string)))
> 
> This should probably be "\n+\\'", because we only want to remove
> newlines from the end of the string, and not newlines from the middle of
> the string, presumably?  ("$" means "match end of line", not "match end
> of string".)

Do we want to remove more than one newline?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]