changeset 31037:a602785d86cd

help: enable pager
author Augie Fackler <augie@google.com>
date Mon, 06 Feb 2017 23:09:21 -0500
parents effb22ac3648
children 66e1eba45f02
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)