mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
refactor: follow style guide
This commit is contained in:
@@ -717,7 +717,7 @@ static size_t do_path_expand(garray_T *gap, const char *path, size_t wildoff, in
|
||||
&& *path_end == '/') {
|
||||
STRCPY(s, path_end + 1);
|
||||
stardepth++;
|
||||
(void)do_path_expand(gap, buf, (size_t)(s - buf), flags, true);
|
||||
do_path_expand(gap, buf, (size_t)(s - buf), flags, true);
|
||||
stardepth--;
|
||||
}
|
||||
*s = NUL;
|
||||
@@ -746,7 +746,7 @@ static size_t do_path_expand(garray_T *gap, const char *path, size_t wildoff, in
|
||||
STRCPY(buf + len, "/**"); // NOLINT
|
||||
STRCPY(buf + len + 3, path_end);
|
||||
stardepth++;
|
||||
(void)do_path_expand(gap, buf, len + 1, flags, true);
|
||||
do_path_expand(gap, buf, len + 1, flags, true);
|
||||
stardepth--;
|
||||
}
|
||||
|
||||
@@ -754,7 +754,7 @@ static size_t do_path_expand(garray_T *gap, const char *path, size_t wildoff, in
|
||||
if (path_has_exp_wildcard(path_end)) { // handle more wildcards
|
||||
// need to expand another component of the path
|
||||
// remove backslashes for the remaining components only
|
||||
(void)do_path_expand(gap, buf, len + 1, flags, false);
|
||||
do_path_expand(gap, buf, len + 1, flags, false);
|
||||
} else {
|
||||
FileInfo file_info;
|
||||
|
||||
@@ -1965,7 +1965,7 @@ bool same_directory(char *f1, char *f2)
|
||||
return false;
|
||||
}
|
||||
|
||||
(void)vim_FullName(f1, ffname, MAXPATHL, false);
|
||||
vim_FullName(f1, ffname, MAXPATHL, false);
|
||||
t1 = path_tail_with_sep(ffname);
|
||||
t2 = path_tail_with_sep(f2);
|
||||
return t1 - ffname == t2 - f2
|
||||
|
Reference in New Issue
Block a user