summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-26 22:55:35 +0200
committerhut <hut@lavabit.com>2010-04-26 22:55:35 +0200
commitf1a454b00d5e75eed3843d750c7e7d38d2a50269 (patch)
tree5f0b6209d1ccaf3184c73110736432849bcd2d68
parent85ff35500c1591b3924fc3bf13b92b6fe9e0b5b6 (diff)
downloadranger-f1a454b00d5e75eed3843d750c7e7d38d2a50269.tar.gz
defaults.apps: use "f = c.file" in the example
-rw-r--r--ranger/defaults/apps.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 5ffbdaf5..93fed45d 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -35,10 +35,11 @@ This example modifies the behaviour of "feh" and adds a custom media player:
 			return tup('feh', '-F', *c)
 
 		def app_default(self, c):
-			if c.file.video or c.file.audio:
+			f = c.file #shortcut
+			if f.video or f.audio:
 				return self.app_kaffeine(c)
 
-			if c.file.image and c.mode == 0:
+			if f.image and c.mode == 0:
 				return self.app_feh_fullscreen_by_default(c)
 
 			return DefaultApps.app_default(self, c)