Commit 486698d9 authored by Marwan Tanager's avatar Marwan Tanager Committed by Sebastian Ramacher

Logical error fix and cleanup for zathura_jumplist_reset_current

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 3cf8fba7
......@@ -1220,18 +1220,14 @@ zathura_jumplist_backward(zathura_t* zathura)
static void
zathura_jumplist_reset_current(zathura_t* zathura)
{
g_return_if_fail(zathura != NULL || zathura->jumplist.cur != NULL);
if (girara_list_iterator_has_next(zathura->jumplist.cur) == false) {
return;
}
g_return_if_fail(zathura != NULL && zathura->jumplist.cur != NULL);
while (true) {
girara_list_iterator_next(zathura->jumplist.cur);
if (girara_list_iterator_has_next(zathura->jumplist.cur) == false) {
return;
}
girara_list_iterator_next(zathura->jumplist.cur);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment