summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-01-23 17:11:41 +0100
committertoonn <toonn@toonn.io>2021-01-23 17:11:41 +0100
commit5e617cd098bd38479e4e36341864a14780bfdc8a (patch)
treeb5d0739f2ac05ffd635ad3d1988c847a599944cf
parentd4d11706e3e2cd7b72ee4147efa05f28c7f639be (diff)
console: Rename to sentinel for clarity
-rwxr-xr-xranger/config/commands.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 32429f24..90f509ab 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -847,12 +847,11 @@ class console(Command):
pass
elif self.arg(1)[0:2] == '-s':
command = self.rest(3)
- separate = self.arg(2)
- position = command.find(separate)
- if position != -1:
- command = command.replace(separate, '', 1)
- else:
- position = None
+ sentinel = self.arg(2)
+ pos = command.find(sentinel)
+ if pos != -1:
+ command = command.replace(sentinel, '', 1)
+ position = pos
self.fm.open_console(command, position=position)