diff options
author | toonn <toonn@toonn.io> | 2021-01-22 20:02:14 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-01-22 20:02:14 +0100 |
commit | 8339dd9b344d0ba39028746403a67fb0202a9672 (patch) | |
tree | 84dd4945eb6dee37f897b0562f4428ee823a4c91 | |
parent | 9f182ab08b8749c8ba7ad350ea4cad64ab1b2b96 (diff) | |
download | ranger-8339dd9b344d0ba39028746403a67fb0202a9672.tar.gz |
console: -s remove only first sentinel occurrence
-rwxr-xr-x | ranger/config/commands.py | 2 |
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) |