Show More
@@ -309,10 +309,7 b' def get_pager_cmd(pager_cmd=None):' | |||||
309 | except: |
|
309 | except: | |
310 | pager_cmd = default_pager_cmd |
|
310 | pager_cmd = default_pager_cmd | |
311 |
|
311 | |||
312 | if pager_cmd == 'less': |
|
312 | if pager_cmd == 'less' and '-r' not in os.environ.get('LESS', ''): | |
313 | try: |
|
|||
314 | os.getenv('LESS').index('-r') |
|
|||
315 | except (ValueError, AttributeError): |
|
|||
316 |
|
|
313 | pager_cmd += ' -r' | |
317 |
|
314 | |||
318 | return pager_cmd |
|
315 | return pager_cmd |
General Comments 0
You need to be logged in to leave comments.
Login now