about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-07 03:00:57 +0200
committerhut <hut@lavabit.com>2010-04-07 03:00:57 +0200
commit32acb814e49744858afa93e39698a5bf3b8bb49b (patch)
tree41e1435b3a4f2bd71ab1bae0b6b867073b0054e2
parent5fd9c5ce80699e28c3bbf918af7a69fc3df61fad (diff)
downloadranger-32acb814e49744858afa93e39698a5bf3b8bb49b.tar.gz
core.actions: more accurate checks
-rw-r--r--ranger/core/actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 489a6bef..ccd78fa7 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -166,9 +166,9 @@ class Actions(EnvironmentAware, SettingsAware):
 					direction.set(narg)
 				else:
 					direction.multiply(narg)
-			if 'pages' in direction:
+			if direction.pages():
 				direction.multiply(self.env.termsize[0])
-			elif 'percentage' in direction:
+			elif direction.percentage():
 				factor = len(self.env.cwd) / 100.0
 				direction.multiply(factor)
 			dct = {}