aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-10-16 18:36:25 +0200
committerBert Münnich <ber.t@gmx.com>2011-10-16 18:36:25 +0200
commitc6bddfe838621cee9cd2b538c15be5acd222f20b (patch)
tree9db39aeafb22ea2d2de87309d5cd9031d39e816d
parent8dcb54705aed7175c91d991486552d497a2e861e (diff)
Multiply i_navigate argument with number prefix
-rw-r--r--commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index ea0a425..920e590 100644
--- a/commands.c
+++ b/commands.c
@@ -118,6 +118,8 @@ bool i_navigate(arg_t a) {
long n = (long) a;
if (mode == MODE_IMAGE) {
+ if (prefix)
+ n *= prefix;
n += fileidx;
if (n < 0)
n = 0;