Mercurial > hg > mercurial-source
changeset 14167:78bdfc756908
util.termwidth: never return 0 for terminal width
Catch a case where the termwidth was being reported as 0 when I was connecting
with TLMTask instead of NSTask in OSX. This caused the progress extension to
print no progress. The termwidth should never return 0 so in case we would
return 0, simply fall back to the default termwidth below which is 80.
author | jfh <jason@jasonfharris.com> |
---|---|
date | Mon, 18 Apr 2011 02:42:52 +0200 |
parents | cb98fed52495 |
children | 9cbff8a39a2a |
files | mercurial/posix.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff