summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-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 = {}