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/ex_docmd.c b/src/ex_docmd.c
index 6682286..0539a51 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -11768,7 +11768,7 @@
      */
     if ((*flagp & SSOP_FOLDS)
 	    && wp->w_buffer->b_ffname != NULL
-	    && (*wp->w_buffer->b_p_bt == NUL || bt_help(wp->w_buffer)))
+	    && (bt_normal(wp->w_buffer) || bt_help(wp->w_buffer)))
     {
 	if (put_folds(fd, wp) == FAIL)
 	    return FAIL;