aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-07-24 07:41:01 +0800
committerckelsel <ckelsel@hotmail.com>2017-07-24 07:41:01 +0800
commit86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6 (patch)
tree2dd6fb4156da7ca3d6d5127d4880f22e59587b15 /src/nvim/ex_docmd.c
parentb656159fcfded40839c222ae1c4e86873c82f295 (diff)
downloadrneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.tar.gz
rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.tar.bz2
rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.zip
fix lint
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 62fa26be3c..d2eb881bc6 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -6174,12 +6174,14 @@ static void ex_tabonly(exarg_T *eap)
*/
void tabpage_close(int forceit)
{
- /* First close all the windows but the current one. If that worked then
- * close the last window in this tab, that will close it. */
- if (!ONE_WINDOW)
- close_others(TRUE, forceit);
- if (ONE_WINDOW)
+ // First close all the windows but the current one. If that worked then
+ // close the last window in this tab, that will close it.
+ if (!ONE_WINDOW) {
+ close_others(true, forceit);
+ }
+ if (ONE_WINDOW) {
ex_win_close(forceit, curwin, NULL);
+ }
}
/*