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
19429574
Commit
19429574
authored
Apr 29, 2016
by
Sebastian Ramacher
Browse files
CS
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
c7236aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/completion.c
View file @
19429574
...
...
@@ -166,7 +166,7 @@ list_files_for_cc(zathura_t* zathura, const char* input, bool check_file_ext, in
/* Append a slash if the given argument is a directory */
bool
is_dir
=
(
path
[
strlen
(
path
)
-
1
]
==
'/'
)
?
true
:
false
;
if
((
g_file_test
(
path
,
G_FILE_TEST_IS_DIR
)
==
TRUE
)
&&
!
is_dir
)
{
if
((
g_file_test
(
path
,
G_FILE_TEST_IS_DIR
)
==
TRUE
)
&&
is_dir
==
false
)
{
char
*
tmp_path
=
g_strdup_printf
(
"%s/"
,
path
);
g_free
(
path
);
path
=
tmp_path
;
...
...
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