aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-07 09:51:59 +0200
committerGitHub <noreply@github.com>2018-09-07 09:51:59 +0200
commit50eadfe2e991a0bb5fe0f98377d91702f0a20492 (patch)
treea9a02766e6773ff2deb8f2c864638521d6fa0d1d /src/nvim/ex_cmds.c
parenta9d83e8112b634544bbaaedaa36e3fa0785b9b51 (diff)
parentd99a2689143827fae19e2354d27287587f2059cb (diff)
downloadrneovim-50eadfe2e991a0bb5fe0f98377d91702f0a20492.tar.gz
rneovim-50eadfe2e991a0bb5fe0f98377d91702f0a20492.tar.bz2
rneovim-50eadfe2e991a0bb5fe0f98377d91702f0a20492.zip
Merge #8962 from janlazo/vim-8.0.0733
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index a9e9364dc3..ac5b3af459 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4514,7 +4514,7 @@ void ex_help(exarg_T *eap)
* Re-use an existing help window or open a new one.
* Always open a new one for ":tab help".
*/
- if (!curwin->w_buffer->b_help
+ if (!bt_help(curwin->w_buffer)
|| cmdmod.tab != 0
) {
if (cmdmod.tab != 0) {
@@ -4522,7 +4522,7 @@ void ex_help(exarg_T *eap)
} else {
wp = NULL;
FOR_ALL_WINDOWS_IN_TAB(wp2, curtab) {
- if (wp2->w_buffer != NULL && wp2->w_buffer->b_help) {
+ if (bt_help(wp2->w_buffer)) {
wp = wp2;
break;
}
@@ -5509,8 +5509,8 @@ static int next_sign_typenr = 1;
void ex_helpclose(exarg_T *eap)
{
FOR_ALL_WINDOWS_IN_TAB(win, curtab) {
- if (win->w_buffer->b_help) {
- win_close(win, FALSE);
+ if (bt_help(win->w_buffer)) {
+ win_close(win, false);
return;
}
}