Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 45817:330c258fe7ca
branching: merge with stable
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 29 Oct 2020 00:17:12 -0700 |
parents | ed84a4d48910 14ac6a74e7e7 |
children | 21733e8c924f |
line wrap: on
line diff
--- a/mercurial/ui.py Sat Oct 17 21:57:21 2020 +0900 +++ b/mercurial/ui.py Thu Oct 29 00:17:12 2020 -0700 @@ -1661,7 +1661,9 @@ if not r: r = default if self.configbool(b'ui', b'promptecho'): - self._writemsg(self._fmsgout, r, b"\n", type=b'promptecho') + self._writemsg( + self._fmsgout, r or b'', b"\n", type=b'promptecho' + ) return r except EOFError: raise error.ResponseExpected()