From 32acb814e49744858afa93e39698a5bf3b8bb49b Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 7 Apr 2010 03:00:57 +0200 Subject: core.actions: more accurate checks --- ranger/core/actions.py | 4 ++-- 1 file 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 = {} -- cgit 1.4.1-2-gfad0