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
42d33735
Commit
42d33735
authored
Mar 24, 2012
by
Moritz Lipp
Browse files
Update sc_goto
parent
fd06599d
Changes
1
Hide whitespace changes
Inline
Side-by-side
shortcuts.c
View file @
42d33735
...
...
@@ -245,14 +245,12 @@ sc_goto(girara_session_t* session, girara_argument_t* argument, girara_event_t*
g_return_val_if_fail
(
argument
!=
NULL
,
false
);
g_return_val_if_fail
(
zathura
->
document
!=
NULL
,
false
);
if
(
argument
->
n
==
TOP
)
{
if
(
t
!=
0
)
{
page_set
(
zathura
,
t
-
1
);
}
else
if
(
argument
->
n
==
TOP
)
{
page_set
(
zathura
,
0
);
}
else
{
if
(
t
==
0
)
{
page_set
(
zathura
,
zathura
->
document
->
number_of_pages
-
1
);
}
else
{
page_set
(
zathura
,
t
-
1
);
}
}
else
if
(
argument
->
n
==
BOTTOM
)
{
page_set
(
zathura
,
zathura
->
document
->
number_of_pages
-
1
);
}
return
false
;
...
...
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