vim-patch:8.0.1726: older MSVC doesn't support declarations halfway a block

Problem:    Older MSVC doesn't support declarations halfway a block.
Solution:   Move the declaration back to the start of the block.
df2c774ded
This commit is contained in:
Jan Edmund Lazo
2019-06-16 19:52:56 -04:00
parent 315076a26d
commit 8bea8d7b47
4 changed files with 10 additions and 9 deletions

View File

@@ -1934,8 +1934,9 @@ void do_wqall(exarg_T *eap)
int error = 0;
int save_forceit = eap->forceit;
if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall)
exiting = TRUE;
if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall) {
exiting = true;
}
FOR_ALL_BUFFERS(buf) {
if (!bufIsChanged(buf)) {