summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 4dbb9e91b..45100788b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -249,7 +249,7 @@ open_buffer(
netbeansFireChanges = oldFire;
#endif
/* Help buffer is filtered. */
- if (curbuf->b_help)
+ if (bt_help(curbuf))
fix_help_buffer();
}
else if (read_stdin)
@@ -5669,6 +5669,15 @@ bt_terminal(buf_T *buf)
}
/*
+ * Return TRUE if "buf" is a help buffer.
+ */
+ int
+bt_help(buf_T *buf)
+{
+ return buf != NULL && buf->b_help;
+}
+
+/*
* Return TRUE if "buf" is a "nofile", "acwrite" or "terminal" buffer.
* This means the buffer name is not a file name.
*/