From 4d90834f887478754948b7bc5febc155716d9313 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Wed, 7 Aug 2019 21:58:57 +0100 Subject: navigator: Use generic list implementation --- src/imv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imv.c') 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); } -- cgit v1.2.3