diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-06 20:12:15 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-06 20:24:29 -0400 |
commit | cfb2828897119df1a7d59f883d151b67609b8361 (patch) | |
tree | 3be5031b3aade722e195758286d6f8a107c61a9b /src/nvim/buffer.c | |
parent | dc15dcffadca790a7b274110c0b356dcc22dfb82 (diff) | |
download | rneovim-cfb2828897119df1a7d59f883d151b67609b8361.tar.gz rneovim-cfb2828897119df1a7d59f883d151b67609b8361.tar.bz2 rneovim-cfb2828897119df1a7d59f883d151b67609b8361.zip |
window: refactor boolean variables in win_close()
free_buf (param) and help_window (variable) are bool.
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 9815063633..5f832bfcf3 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -842,7 +842,7 @@ void goto_buffer(exarg_T *eap, int start, int dir, int count) enter_cleanup(&cs); /* Quitting means closing the split window, nothing else. */ - win_close(curwin, TRUE); + win_close(curwin, true); swap_exists_action = SEA_NONE; swap_exists_did_quit = TRUE; @@ -4651,7 +4651,7 @@ void ex_buffer_all(exarg_T *eap) && !ONE_WINDOW && !(wp->w_closing || wp->w_buffer->b_locked > 0) ) { - win_close(wp, FALSE); + win_close(wp, false); wpnext = firstwin; /* just in case an autocommand does something strange with windows */ tpnext = first_tabpage; /* start all over...*/ @@ -4724,7 +4724,7 @@ void ex_buffer_all(exarg_T *eap) enter_cleanup(&cs); /* User selected Quit at ATTENTION prompt; close this window. */ - win_close(curwin, TRUE); + win_close(curwin, true); --open_wins; swap_exists_action = SEA_NONE; swap_exists_did_quit = TRUE; |