Show More
@@ -846,6 +846,15 b' class ui(object):' | |||||
846 | if not pagercmd: |
|
846 | if not pagercmd: | |
847 | return |
|
847 | return | |
848 |
|
848 | |||
|
849 | if pycompat.osname == 'nt': | |||
|
850 | # `more` cannot be invoked with shell=False, but `more.com` can. | |||
|
851 | # Hide this implementation detail from the user, so we can also get | |||
|
852 | # sane bad PAGER behavior. If args are also given, the space in the | |||
|
853 | # command line forces shell=True, so that case doesn't need to be | |||
|
854 | # handled here. | |||
|
855 | if pagercmd == 'more': | |||
|
856 | pagercmd = 'more.com' | |||
|
857 | ||||
849 | self.debug('starting pager for command %r\n' % command) |
|
858 | self.debug('starting pager for command %r\n' % command) | |
850 | self.flush() |
|
859 | self.flush() | |
851 | self.pageractive = True |
|
860 | self.pageractive = True |
General Comments 0
You need to be logged in to leave comments.
Login now