Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
486698d9
Commit
486698d9
authored
Jun 30, 2013
by
Marwan Tanager
Committed by
Sebastian Ramacher
Jun 30, 2013
Browse files
Logical error fix and cleanup for zathura_jumplist_reset_current
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
3cf8fba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
486698d9
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment