about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-01-16 21:53:08 +0100
committertoonn <toonn@toonn.io>2021-01-16 21:53:08 +0100
commit278c655b55a18e63848cda9c945b5a6f7a110636 (patch)
tree20759465e60617a533cce0c45250d68375e18415 /ranger
parentf130f7c7e4f3e5eeed90bf1a01d69882cccb0321 (diff)
downloadranger-278c655b55a18e63848cda9c945b5a6f7a110636.tar.gz
transpose_subr: Appease the almighty pylint
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 64537062..eb8cbac6 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -442,7 +442,7 @@ class Console(Widget):  # pylint: disable=too-many-instance-attributes,too-many-
     def transpose_subr(self, line, x, y):
         # Transpose substrings x & y of line
         # x & y are tuples of length two containing positions of endpoints
-        if not (0 <= x[0] < x[1] <= y[0] < y[1] <= len(line)):
+        if not 0 <= x[0] < x[1] <= y[0] < y[1] <= len(line):
             self.fm.notify("Tried to transpose invalid regions.", bad=True)
             return line