aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-07 21:58:57 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-07 21:58:57 +0100
commit4d90834f887478754948b7bc5febc155716d9313 (patch)
treed6672694d437f6bdf6df3eb08f31bf9b734271af /src/imv.c
parent6932ab51971d40966d4d8aa473c15c10899e4763 (diff)
downloadimv-4d90834f887478754948b7bc5febc155716d9313.tar.gz
navigator: Use generic list implementation
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);
}