From a9046bfc42cb3b8e2d7276fea0fc3934caa9bbda Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 13 Oct 2010 00:39:16 +0200 Subject: core.actions: Fixed handling of scope.sh exit code 2 --- ranger/core/actions.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit 1.4.1-2-gfad0