aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.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/buffer.c
parentb656159fcfded40839c222ae1c4e86873c82f295 (diff)
downloadrneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.tar.gz
rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.tar.bz2
rneovim-86f2c473dc0e5b3c886d71b2fee99e1f3c9849b6.zip
fix lint
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index f5d8b6ad30..724a8578ac 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1204,7 +1204,7 @@ do_buffer (
while (buf == curbuf
&& !(curwin->w_closing || curwin->w_buffer->b_locked > 0)
&& (!ONE_WINDOW || first_tabpage->tp_next != NULL)) {
- if (win_close(curwin, FALSE) == FAIL)
+ if (win_close(curwin, false) == FAIL)
break;
}
@@ -4428,15 +4428,17 @@ do_arg_all (
continue;
}
}
- /* don't close last window */
+ // don't close last window
if (ONE_WINDOW
- && (first_tabpage->tp_next == NULL || !had_tab))
- use_firstwin = TRUE;
- else {
+ && (first_tabpage->tp_next == NULL || !had_tab)) {
+ use_firstwin = true;
+ } else {
win_close(wp, !P_HID(buf) && !bufIsChanged(buf));
- /* check if autocommands removed the next window */
- if (!win_valid(wpnext))
- wpnext = firstwin; /* start all over... */
+ // check if autocommands removed the next window
+ if (!win_valid(wpnext)) {
+ // start all over...
+ wpnext = firstwin;
+ }
}
}
}