diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-21 11:02:29 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-22 18:42:58 +0100 |
commit | 53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a (patch) | |
tree | 12280d1ac92ac758aa3be2cdff38a81fe2dc1721 /src/nvim/window.c | |
parent | b0e34497b357462024c07d506a16426d58475497 (diff) | |
download | rneovim-53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a.tar.gz rneovim-53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a.tar.bz2 rneovim-53ccd07fa1c0bfcb79ca11bd873ea12f4dc12f4a.zip |
lint
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index a737ffb33c..15482d9061 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -1746,7 +1746,7 @@ void close_windows(buf_T *buf, int keep_curwin) FOR_ALL_WINDOWS_IN_TAB(wp, tp) { if (wp->w_buffer == buf && !(wp->w_closing || wp->w_buffer->b_locked > 0)) { - win_close_othertab(wp, FALSE, tp); + win_close_othertab(wp, false, tp); /* Start all over, the tab page may be closed and * autocommands may change the window layout. */ @@ -1881,7 +1881,8 @@ int win_close(win_T *win, int free_buf) return FAIL; } - if (win->w_closing || (win->w_buffer != NULL && win->w_buffer->b_locked > 0)) { + if (win->w_closing + || (win->w_buffer != NULL && win->w_buffer->b_locked > 0)) { return FAIL; // window is already being closed } if (win == aucmd_win) { |