From e3de09cf89574d3b363308f59ee573741d7ce495 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 20 Jan 2015 16:47:46 +0100 Subject: core.fm: Call default rifle.hook_command_preprocessing --- ranger/core/fm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/core/fm.py b/ranger/core/fm.py index 082df2f4..4fae117d 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -120,6 +120,7 @@ class FM(Actions, SignalDispatcher): self.rifle.hook_after_executing = lambda a, b, flags: \ self.ui.initialize() if 'f' not in flags else None self.rifle.hook_logger = self.notify + old_preprocessing_hook = self.rifle.hook_command_preprocessing # This hook allows image viewers to open all images in the current # directory, keeping the order of files the same as in ranger. @@ -156,7 +157,7 @@ class FM(Actions, SignalDispatcher): if new_command: command = "set -- %s; %s" % (escaped_filenames, new_command) - return command + return old_preprocessing_hook(command) self.rifle.hook_command_preprocessing = sxiv_workaround_hook -- cgit 1.4.1-2-gfad0