diff options
-rw-r--r-- | ranger/gui/widgets/console.py | 3 |
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 |