aboutsummaryrefslogtreecommitdiff
path: root/navigator.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-10 11:33:00 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-10 11:33:00 +0000
commitde773b5fe013ccceba2331a8ceeaccc58ab4546e (patch)
tree5a6362d2acbd4aeaeeb987af1b702cfc818276cb /navigator.c
parentf99e409f2d08dabb975b978a8918d5f23cb05f89 (diff)
downloadimv-de773b5fe013ccceba2331a8ceeaccc58ab4546e.tar.gz
Fix invalid path skipping
Diffstat (limited to 'navigator.c')
-rw-r--r--navigator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navigator.c b/navigator.c
index 115b8bf..393f887 100644
--- a/navigator.c
+++ b/navigator.c
@@ -145,7 +145,7 @@ void imv_navigator_remove_current_path(struct imv_navigator *nav)
struct imv_loop_item *cur = nav->cur;
cur->next->prev = cur->prev;
cur->prev->next = cur->next;
- if(nav->last_move_direction > 0) {
+ if(nav->last_move_direction < 0) {
nav->cur = cur->prev;
} else {
nav->cur = cur->next;