patch 8.1.0230: directly checking 'buftype' value

Problem:    Directly checking 'buftype' value.
Solution:   Add the bt_normal() function. (Yegappan Lakshmanan)
diff --git a/src/buffer.c b/src/buffer.c
index 1f1833f..f76d849 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5627,6 +5627,15 @@
 #endif
 
 /*
+ * Return TRUE if "buf" is a normal buffer, 'buftype' is empty.
+ */
+    int
+bt_normal(buf_T *buf)
+{
+    return buf != NULL && buf->b_p_bt[0] == NUL;
+}
+
+/*
  * Return TRUE if "buf" is the quickfix buffer.
  */
     int