summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-01 17:53:12 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-01 17:53:12 +0200
commit91335e5a67aaa9937e65f1e779b9f3f10fd33ee4 (patch)
treeab7a421b7c2dda741870488578e857c237adf517 /src/ex_docmd.c
parentd2855f5454c5c6c5f786b228c5b67757edfefcb1 (diff)
patch 8.1.0230: directly checking 'buftype' valuev8.1.0230
Problem: Directly checking 'buftype' value. Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 6682286210..0539a5114b 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -11768,7 +11768,7 @@ put_view(
*/
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;