ui.py: do_pager(): update LESS environment var
This commit is contained in:
parent
47a5da0418
commit
eee6167327
1 changed files with 1 additions and 3 deletions
|
|
@ -113,9 +113,7 @@ def do_pager(text):
|
|||
|
||||
pagers = ['less','more']
|
||||
end_msg = '\n(end of text)\n\n'
|
||||
# --- Non-MSYS Windows code deleted ---
|
||||
# raw, chop, horiz scroll 8 chars, disable buggy line chopping in MSYS
|
||||
os.environ['LESS'] = '--shift 16 -RS' if gc.platform == 'win' else '--shift 8 -RS'
|
||||
os.environ['LESS'] = '--jump-target=2 --shift=4 --tabs=4 --RAW-CONTROL-CHARS --chop-long-lines'
|
||||
|
||||
if 'PAGER' in os.environ and os.environ['PAGER'] != pagers[0]:
|
||||
pagers = [os.environ['PAGER']] + pagers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue