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
89113e3d
Commit
89113e3d
authored
Apr 24, 2014
by
Sebastian Ramacher
Browse files
Fix cb_jumplist_change
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
8409fb2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
config.c
View file @
89113e3d
...
...
@@ -31,17 +31,15 @@ cb_jumplist_change(girara_session_t* session, const char* name,
g_return_if_fail
(
name
!=
NULL
);
zathura_t
*
zathura
=
session
->
global
.
data
;
if
(
g_strcmp0
(
name
,
"jumplist-size"
)
!=
0
)
{
return
;
}
if
(
*
(
int
*
)
value
<
0
)
{
zathura
->
jumplist
.
max_size
=
0
;
}
else
{
zathura
->
jumplist
.
max_size
=
*
(
int
*
)
value
;
}
zathura_jumplist_trim
(
zathura
);
if
(
zathura
->
jumplist
.
list
!=
NULL
&&
zathura
->
jumplist
.
size
!=
0
)
{
zathura_jumplist_trim
(
zathura
);
}
}
static
void
...
...
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