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/regexp.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/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 4d0bf03d8b..b7ec4bf94e 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -821,7 +821,7 @@ static int64_t gethexchrs(int maxinputlen) } nr <<= 4; nr |= hex2nr(c); - ++regparse; + regparse++; } if (i == 0) { @@ -878,7 +878,7 @@ static int64_t getoctchrs(void) } nr <<= 3; nr |= hex2nr(c); - ++regparse; + regparse++; } if (i == 0) { @@ -2095,8 +2095,8 @@ static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int des dst++; } - ++s; - --len; + s++; + len--; } } } |