about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-01-22 20:02:14 +0100
committertoonn <toonn@toonn.io>2021-01-22 20:02:14 +0100
commit8339dd9b344d0ba39028746403a67fb0202a9672 (patch)
tree84dd4945eb6dee37f897b0562f4428ee823a4c91
parent9f182ab08b8749c8ba7ad350ea4cad64ab1b2b96 (diff)
downloadranger-8339dd9b344d0ba39028746403a67fb0202a9672.tar.gz
console: -s remove only first sentinel occurrence
-rwxr-xr-xranger/config/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index bef471c8..ea2ab982 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -850,7 +850,7 @@ class console(Command):
             separate = self.arg(2)
             position = command.find(separate)
             if position != -1:
-                command = command.replace(separate, '')
+                command = command.replace(separate, '', 1)
             else:
                 position = None
         self.fm.open_console(command, position=position)