From 9553793de9b338c783726f885d3892096b397ce5 2016-02-20 23:24:41 From: Dmitry Zotikov Date: 2016-02-20 23:24:41 Subject: [PATCH] (nesting typo) --- diff --git a/IPython/core/page.py b/IPython/core/page.py index 340d703..df38ddf 100644 --- a/IPython/core/page.py +++ b/IPython/core/page.py @@ -310,10 +310,10 @@ def get_pager_cmd(pager_cmd=None): pager_cmd = default_pager_cmd if pager_cmd == 'less': - try: - os.getenv('LESS').index('-r') - except (ValueError, AttributeError): - pager_cmd += ' -r' + try: + os.getenv('LESS').index('-r') + except (ValueError, AttributeError): + pager_cmd += ' -r' return pager_cmd