equal
deleted
inserted
replaced
645 else: |
645 else: |
646 if name in subtopics: |
646 if name in subtopics: |
647 subtopic = remaining |
647 subtopic = remaining |
648 else: |
648 else: |
649 section = remaining |
649 section = remaining |
650 textwidth = ui.configint('ui', 'textwidth', 78) |
650 textwidth = ui.configint('ui', 'textwidth') |
651 termwidth = ui.termwidth() - 2 |
651 termwidth = ui.termwidth() - 2 |
652 if textwidth <= 0 or termwidth < textwidth: |
652 if textwidth <= 0 or termwidth < textwidth: |
653 textwidth = termwidth |
653 textwidth = termwidth |
654 text = help_(ui, commands, name, |
654 text = help_(ui, commands, name, |
655 subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts) |
655 subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts) |