help: enable pager
authorAugie Fackler <augie@google.com>
Mon, 06 Feb 2017 23:09:21 -0500
changeset 31037 a602785d86cd
parent 31036 effb22ac3648
child 31038 66e1eba45f02
help: enable pager
mercurial/commands.py
--- a/mercurial/commands.py	Mon Feb 06 23:09:15 2017 -0500
+++ b/mercurial/commands.py	Mon Feb 06 23:09:21 2017 -0500
@@ -2721,7 +2721,6 @@
 
     Returns 0 if successful.
     """
-
     textwidth = ui.configint('ui', 'textwidth', 78)
     termwidth = ui.termwidth() - 2
     if textwidth <= 0 or termwidth < textwidth:
@@ -2772,6 +2771,7 @@
         keep.append('notomitted')
     formatted, pruned = minirst.format(text, textwidth, keep=keep,
                                        section=section)
+    ui.pager('help')
     ui.write(formatted)