summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-13 00:39:16 +0200
committerhut <hut@lavabit.com>2010-10-13 00:40:59 +0200
commita9046bfc42cb3b8e2d7276fea0fc3934caa9bbda (patch)
tree95fda59f64b7d7cab7efdfb7c71e9d7b6854372f
parentaa488bd940265362c530ec6f62033ceb2b56d10a (diff)
downloadranger-a9046bfc42cb3b8e2d7276fea0fc3934caa9bbda.tar.gz
core.actions: Fixed handling of scope.sh exit code 2
-rw-r--r--ranger/core/actions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 3382b7b1..297de576 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -612,6 +612,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 					elif exit == 1:
 						data[(-1, -1)] = None
 						data['foundpreview'] = False
+					elif exit == 2:
+						data[(-1, -1)] = open(path, 'r').read(1024 * 32)
 					else:
 						data[(-1, -1)] = None
 					if self.env.cf.realpath == path: