branch | stable |
changeset 45758 | 14ac6a74e7e7 |
parent 45061 | 02b17231f6c3 |
child 45794 | 330c258fe7ca |
child 46024 | 07b0a687c01a |
--- a/mercurial/ui.py Thu Oct 29 07:51:13 2020 +0100 +++ b/mercurial/ui.py Fri Oct 23 20:10:17 2020 +0900 @@ -1659,7 +1659,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()