summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/ext/rifle.py12
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']:
 
e/doc/pydoc/ranger.gui.curses_shortcuts.html?h=v1.9.0b5&id=0cfc59d6028c6b43e1dc323b94c84a8157db1859'>^
62cd83ba ^






4c13e1f2 ^















34a60763 ^
4c13e1f2 ^






















34a60763 ^
4c13e1f2 ^






34a60763 ^
4c13e1f2 ^
34a60763 ^
4c13e1f2 ^












62cd83ba ^
4c13e1f2 ^
b3556b21 ^
4c13e1f2 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93