diff options
author | Lewis Russell <lewis6991@gmail.com> | 2022-08-16 12:26:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 12:26:08 +0100 |
commit | 542fa8a9cc10abb8eddab25a19844d19b94f53c1 (patch) | |
tree | fa29fc00d016beaddd5893336c19d12757e16494 /src/nvim/strings.c | |
parent | 9a4b8dc603fb9f5a804d69951848e0ff75d0905f (diff) | |
download | rneovim-542fa8a9cc10abb8eddab25a19844d19b94f53c1.tar.gz rneovim-542fa8a9cc10abb8eddab25a19844d19b94f53c1.tar.bz2 rneovim-542fa8a9cc10abb8eddab25a19844d19b94f53c1.zip |
refactor: change pre-decrement/increment to post (#19799)
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index dbd413c2d5..78312c738c 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -264,7 +264,7 @@ char_u *vim_strsave_shellescape(const char_u *string, bool do_special, bool do_n *d++ = '\\'; *d++ = '\''; *d++ = '\''; - ++p; + p++; continue; } if ((*p == '\n' && (csh_like || do_newline)) @@ -431,8 +431,8 @@ int vim_stricmp(const char *s1, const char *s2) if (*s1 == NUL) { break; // strings match until NUL } - ++s1; - ++s2; + s1++; + s2++; } return 0; // strings match } @@ -457,9 +457,9 @@ int vim_strnicmp(const char *s1, const char *s2, size_t len) if (*s1 == NUL) { break; // strings match until NUL } - ++s1; - ++s2; - --len; + s1++; + s2++; + len--; } return 0; // strings match } |