summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;