equal
deleted
inserted
replaced
4565 topic. |
4565 topic. |
4566 |
4566 |
4567 Returns 0 if successful. |
4567 Returns 0 if successful. |
4568 """ |
4568 """ |
4569 |
4569 |
4570 textwidth = min(ui.termwidth(), 80) - 2 |
4570 textwidth = ui.configint('ui', 'textwidth', 78) |
|
4571 termwidth = ui.termwidth() - 2 |
|
4572 if textwidth <= 0 or termwidth < textwidth: |
|
4573 textwidth = termwidth |
4571 |
4574 |
4572 keep = opts.get('system') or [] |
4575 keep = opts.get('system') or [] |
4573 if len(keep) == 0: |
4576 if len(keep) == 0: |
4574 if sys.platform.startswith('win'): |
4577 if sys.platform.startswith('win'): |
4575 keep.append('windows') |
4578 keep.append('windows') |