diff options
author | guangzhi <xugzhi1987@gmail.com> | 2018-05-19 07:52:41 +0800 |
---|---|---|
committer | guangzhi <xugzhi1987@gmail.com> | 2018-05-19 07:52:41 +0800 |
commit | 2bb4c49acd42058378da59cc8d580f9aab1a9f6f (patch) | |
tree | 2922c55a30dd30560cbf8c0f2363f4ba79dc2e7f | |
parent | 982b309434376202c2445527bfcac9ed5bfa602c (diff) | |
download | ranger-2bb4c49acd42058378da59cc8d580f9aab1a9f6f.tar.gz |
remove term=term.lower()
-rwxr-xr-x | ranger/ext/rifle.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index 5c17839a..650b8796 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -364,17 +364,15 @@ class Rifle(object): # pylint: disable=too-many-instance-attributes cmd = prefix + [command] if 't' in flags: term = os.environ.get('TERMCMD', os.environ['TERM']) - # we can do this, can't we? - term = term.lower() - # handle aliases of xterm and urxvt, rxvt - # match 'xterm', 'xterm-256color' + # Handle aliases of xterm and urxvt, rxvt. + # Match 'xterm', 'xterm-256color' if term.startswith('xterm'): term = 'xterm' if term in ['urxvt', 'rxvt-unicode']: term = 'urxvt' if term in ['rxvt', 'rxvt-256color']: - if 'rxvt 'in get_executables(): + if 'rxvt' in get_executables(): term = 'rxvt' else: term = 'urxvt' @@ -402,8 +400,8 @@ class Rifle(object): # pylint: disable=too-many-instance-attributes os.environ['TERMCMD'] = term - # These terms don't work with the '/bin/sh set --' scheme - # a temporary fix. + # These terms don't work with the '/bin/sh set --' scheme. + # A temporary fix. if term in ['tilda', 'pantheon-terminal', 'terminology', 'termite']: |