aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-10-12 14:53:40 +0100
committerGitHub <noreply@github.com>2022-10-12 14:53:40 +0100
commit0ef6aaa3a73d5089bf53e804364950c81784574c (patch)
treeb74efe8683f2a6a8257ed31725244d749d229274 /src/nvim/path.c
parent024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7 (diff)
downloadrneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.tar.gz
rneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.tar.bz2
rneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.zip
refactor: clint (#20600)
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 9295905415..981937b79e 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -645,7 +645,7 @@ static size_t do_path_expand(garray_T *gap, const char *path, size_t wildoff, in
#ifndef MSWIN
|| (!p_fic && (flags & EW_ICASE) && mb_isalpha(utf_ptr2char((char *)path_end)))
#endif
- )) {
+ )) { // NOLINT(whitespace/parens)
e = p;
}
len = (size_t)(utfc_ptr2len((char *)path_end));
@@ -787,7 +787,7 @@ static int find_previous_pathsep(char_u *path, char_u **psep)
{
// skip the current separator
if (*psep > path && vim_ispathsep(**psep)) {
- --*psep;
+ (*psep)--;
}
// find the previous separator