Mercurial > vim
diff src/ex_docmd.c @ 14433:4a94173743d9 v8.1.0230
patch 8.1.0230: directly checking 'buftype' value
commit https://github.com/vim/vim/commit/91335e5a67aaa9937e65f1e779b9f3f10fd33ee4
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 1 17:53:12 2018 +0200
patch 8.1.0230: directly checking 'buftype' value
Problem: Directly checking 'buftype' value.
Solution: Add the bt_normal() function. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Aug 2018 18:00:07 +0200 |
parents | aab5947be7c5 |
children | 3375a8cbb442 |
line wrap: on
line diff
--- 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;