aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imv.c b/src/imv.c
index 40831fb..8c82748 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -836,7 +836,7 @@ int imv_run(struct imv *imv)
}
if (imv->starting_path) {
- int index = imv_navigator_find_path(imv->navigator, imv->starting_path);
+ ssize_t index = imv_navigator_find_path(imv->navigator, imv->starting_path);
if (index == -1) {
index = (int) strtol(imv->starting_path, NULL, 10);
index -= 1; /* input is 1-indexed, internally we're 0 indexed */
@@ -846,7 +846,7 @@ int imv_run(struct imv *imv)
}
if (index >= 0) {
- imv_navigator_select_str(imv->navigator, index);
+ imv_navigator_select_abs(imv->navigator, index);
} else {
imv_log(IMV_ERROR, "Invalid starting image: %s\n", imv->starting_path);
}