summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-01-16 22:20:11 +0100
committertoonn <toonn@toonn.io>2021-01-16 22:20:11 +0100
commitb3279652597dcf9c3b2db8699f4a311d24730267 (patch)
tree499aa19a4c153a0b32121ce07e0cdc874dc2d8a7
parent278c655b55a18e63848cda9c945b5a6f7a110636 (diff)
transpose_subr/words: Format in accordance to PEP8
-rw-r--r--ranger/gui/widgets/console.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index eb8cbac6..71c8b6ed 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -479,8 +479,7 @@ class Console(Widget): # pylint: disable=too-many-instance-attributes,too-many-
# If in/after last word, interchange last two words
if (re.match(r'[\w\d]*\s*$', self.line[self.pos:], re.UNICODE)
and (re.match(r'[\w\d]', self.line[self.pos - 1], re.UNICODE)
- if self.pos -1 >= 0 else True)
- ):
+ if self.pos - 1 >= 0 else True)):
self.pos = self.move_by_word(self.line, self.pos, -1)
# Util function to increment position until out of word/whitespace