summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-01-20 16:47:46 +0100
committerhut <hut@lepus.uberspace.de>2015-01-20 16:47:46 +0100
commite3de09cf89574d3b363308f59ee573741d7ce495 (patch)
tree37b2d7638c7b3bbc6fa301a5dbf4c6f8ca9062c9
parentf8a72ee23377d4fdc760aa53e2e08dbf364b5a06 (diff)
downloadranger-e3de09cf89574d3b363308f59ee573741d7ce495.tar.gz
core.fm: Call default rifle.hook_command_preprocessing
-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