about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-09-27 02:38:20 +0200
committerhut <hut@lavabit.com>2010-10-10 02:48:14 +0200
commit36814777ba720dc4c092becfad7ede98e4e89331 (patch)
tree153ab59737f4535882165f343a383f85c5c07c42
parent542103498ad5efc91bfee8eb3b742118c9f35db5 (diff)
downloadranger-36814777ba720dc4c092becfad7ede98e4e89331.tar.gz
defaults.apps: open empty files with unknown mimetype in vim
-rw-r--r--ranger/defaults/apps.py2
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')