mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: change pre-decrement/increment to post (#19799)
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -1338,7 +1338,7 @@ static void closescript(void)
|
||||
file_free(scriptin[curscript], false);
|
||||
scriptin[curscript] = NULL;
|
||||
if (curscript > 0) {
|
||||
--curscript;
|
||||
curscript--;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2396,7 +2396,7 @@ static int vgetorpeek(bool advance)
|
||||
return NUL;
|
||||
}
|
||||
|
||||
++vgetc_busy;
|
||||
vgetc_busy++;
|
||||
|
||||
if (advance) {
|
||||
KeyStuffed = FALSE;
|
||||
@@ -2783,7 +2783,7 @@ static int vgetorpeek(bool advance)
|
||||
gotchars(nop_buf, 3);
|
||||
}
|
||||
|
||||
--vgetc_busy;
|
||||
vgetc_busy--;
|
||||
|
||||
return c;
|
||||
}
|
||||
|
Reference in New Issue
Block a user