summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2011-10-16 17:39:22 +0200
committerBert Münnich <ber.t@gmx.com>2011-10-16 17:39:22 +0200
commit867940ea85495ac4e8e23efbb574fd9d86bccf42 (patch)
tree6dc435cef2386dc37265d6dde787c1cf35f47e4f /commands.c
parentdc727b8dce89811d755ed03d11688b13a42e794a (diff)
downloadnsxiv-867940ea85495ac4e8e23efbb574fd9d86bccf42.tar.zst
Pan by pixel count, if number prefix given
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index 6d9ff38..db0a808 100644
--- a/commands.c
+++ b/commands.c
@@ -184,7 +184,7 @@ bool it_move(arg_t a) {
direction_t dir = (direction_t) a;
if (mode == MODE_IMAGE)
- return img_pan(&img, dir, false);
+ return img_pan(&img, dir, prefix);
else
return tns_move_selection(&tns, dir);
}
@@ -193,7 +193,7 @@ bool i_pan_screen(arg_t a) {
direction_t dir = (direction_t) a;
if (mode == MODE_IMAGE)
- return img_pan(&img, dir, true);
+ return img_pan(&img, dir, -1);
else
return false;
}