aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/runtime.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-04-29 19:33:05 +0200
committerGitHub <noreply@github.com>2022-04-29 19:33:05 +0200
commit6d4180a0d20d0b730b6e64acdac39261f52a9277 (patch)
tree2143d3d8f2cc10caee8b94d79d356eee2e762ebd /src/nvim/runtime.c
parentd5dc3dad80ab1aef1d5e2afcc4d44a779605da8b (diff)
parenteef8de4df0247157e57f306062b1b86e01a41454 (diff)
downloadrneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.tar.gz
rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.tar.bz2
rneovim-6d4180a0d20d0b730b6e64acdac39261f52a9277.zip
Merge pull request #18162 from dundargoc/refactor/unctustify
refactor/uncrustify
Diffstat (limited to 'src/nvim/runtime.c')
-rw-r--r--src/nvim/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c
index 1102096b32..970072a53c 100644
--- a/src/nvim/runtime.c
+++ b/src/nvim/runtime.c
@@ -485,7 +485,7 @@ static void expand_pack_entry(RuntimeSearchPath *search_path, Map(String, handle
STRLCPY(buf, pack_entry, sizeof buf);
STRLCPY(buf + pack_entry_len, start_pat[i], sizeof buf - pack_entry_len);
expand_rtp_entry(search_path, rtp_used, buf, false);
- size_t after_size = STRLEN(buf)+7;
+ size_t after_size = STRLEN(buf) + 7;
char *after = xmallocz(after_size);
xstrlcpy(after, buf, after_size);
xstrlcat(after, "/after", after_size);
@@ -499,7 +499,7 @@ static bool path_is_after(char_u *buf, size_t buflen)
// vim8 considers all dirs like "foo/bar_after", "Xafter" etc, as an
// "after" dir in SOME codepaths not not in ALL codepaths.
return buflen >= 5
- && (!(buflen >= 6) || vim_ispathsep(buf[buflen-6]))
+ && (!(buflen >= 6) || vim_ispathsep(buf[buflen - 6]))
&& STRCMP(buf + buflen - 5, "after") == 0;
}