From 8bea8d7b4767d896e5c557ea9603e3d55e8e47af Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 16 Jun 2019 19:52:56 -0400 Subject: 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. https://github.com/vim/vim/commit/df2c774ded4c2ed169390a352099c23b6db657c4 --- src/nvim/ex_cmds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 30667b64e5..71ed5f6ec1 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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)) { -- cgit