summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/fm.py3
1 files changed, 2 insertions, 1 deletions
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