diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-08-24 22:49:25 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2022-08-25 13:10:41 +0100 |
commit | 93f24403f8cc760ff47979c596976b53a8b16358 (patch) | |
tree | 93d2d2879aba8d563fde484d1fae5864b18134bc /src/nvim/path.c | |
parent | 1b29288709e75064b9188420d46e1028d7ee341e (diff) | |
download | rneovim-93f24403f8cc760ff47979c596976b53a8b16358.tar.gz rneovim-93f24403f8cc760ff47979c596976b53a8b16358.tar.bz2 rneovim-93f24403f8cc760ff47979c596976b53a8b16358.zip |
refactor: pre-incr to post-incr
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r-- | src/nvim/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c index ce0a7fb281..3b3156bc73 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -663,7 +663,7 @@ static size_t do_path_expand(garray_T *gap, const char_u *path, size_t wildoff, // Now we have one wildcard component between "s" and "e". /* Remove backslashes between "wildoff" and the start of the wildcard * component. */ - for (p = buf + wildoff; p < s; ++p) { + for (p = buf + wildoff; p < s; p++) { if (rem_backslash(p)) { STRMOVE(p, p + 1); e--; @@ -672,7 +672,7 @@ static size_t do_path_expand(garray_T *gap, const char_u *path, size_t wildoff, } // Check for "**" between "s" and "e". - for (p = s; p < e; ++p) { + for (p = s; p < e; p++) { if (p[0] == '*' && p[1] == '*') { starstar = true; } |