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 = {}
0 added Makefile' href='/akspecs/ranger/commit/all_tests.py?h=v1.9.3&id=e9e4b4ffa4b4865c46acbebfc7ef2083bfac0210'>e9e4b4ff ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21