diff options
author | toonn <toonn@toonn.io> | 2020-03-27 21:50:15 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-03-31 22:10:30 +0200 |
commit | 977485179b459d01d7297b8955e91b56de25d478 (patch) | |
tree | bbfd5b1e66a211e06ff7d4c132fdbe50b6796d31 /ranger/core/actions.py | |
parent | 081e73152a9391211770fab56676d7d974413ae6 (diff) |
I Really Can't anymoreinternetrangerchat
Time to get down to brass tacks. Recent events have shaken up the entire
world. Who has time to manage files in in such turbulent times? Exactly,
not me, not you, not even RoboBobob.
What really matters now is communication, we need to get people Chatting
over the Internet, let's see how Ranger can help.
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index c3d7de86..6deb7c50 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1070,6 +1070,9 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m except (IOError, OSError): return None + if fobj.basename == "out": + return codecs.open(path, 'r', errors='ignore') + # self.previews is a 2 dimensional dict: # self.previews['/tmp/foo.jpg'][(80, 24)] = "the content..." # self.previews['/tmp/foo.jpg']['loading'] = False @@ -1098,6 +1101,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m if found is not False: return found + try: stat_ = os.stat(self.settings.preview_script) except OSError: |