We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab08b0 commit 5316683Copy full SHA for 5316683
px/px_pager.py
@@ -89,6 +89,16 @@ def launch_pager():
89
# Prevent --quit-if-one-screen, we always want a pager
90
env['LESS'] = ''
91
92
+ # Git sets this to "FRX", but "F" means "don't page if output is too short"
93
+ # and we always want to page, so we go for "RX" only.
94
+ #
95
+ # "F" might work when somebody does "px 1234", but when ptop wants to show
96
+ # process info it w
97
+ env['LESS'] = 'RX'
98
+
99
+ # Git does this as well
100
+ env['LV'] = '-c'
101
102
pager_cmd = to_command_line(env.get('PAGER', None))
103
if not pager_cmd:
104
# Prefer moar: https://github.com/walles/moar
0 commit comments