mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 08:33:46 +01:00
Simplify
This commit is contained in:
parent
ea094f2393
commit
9bfe4f222e
@ -53,11 +53,7 @@ zathura_jumplist_reset_current(zathura_t* zathura)
|
|||||||
{
|
{
|
||||||
g_return_if_fail(zathura != NULL && zathura->jumplist.cur != NULL);
|
g_return_if_fail(zathura != NULL && zathura->jumplist.cur != NULL);
|
||||||
|
|
||||||
while (true) {
|
while (girara_list_iterator_has_next(zathura->jumplist.cur) == true) {
|
||||||
if (girara_list_iterator_has_next(zathura->jumplist.cur) == false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
girara_list_iterator_next(zathura->jumplist.cur);
|
girara_list_iterator_next(zathura->jumplist.cur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user