From 8339dd9b344d0ba39028746403a67fb0202a9672 Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 22 Jan 2021 20:02:14 +0100 Subject: console: -s remove only first sentinel occurrence --- ranger/config/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0