diff options
-rw-r--r-- | ranger/defaults/apps.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 47eff0c9..1f9ba763 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -87,7 +87,7 @@ class CustomApplications(Applications): if f.image: return self.either(c, 'feh', 'eog', 'mirage') - if f.document or f.filetype.startswith('text'): + if f.document or f.filetype.startswith('text') or f.size == 0: return self.either(c, 'editor') |