summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentaa488bd940265362c530ec6f62033ceb2b56d10a (diff)
downloadranger-a9046bfc42cb3b8e2d7276fea0fc3934caa9bbda.tar.gz
core.actions: Fixed handling of scope.sh exit code 2
Diffstat (limited to 'ranger')
-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:
n152' href='#n152'>152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176