vim-patch:8.1.0230: directly checking 'buftype' value

Problem:    Directly checking 'buftype' value.
Solution:   Add the bt_normal() function. (Yegappan Lakshmanan)
91335e5a67
This commit is contained in:
Jan Edmund Lazo
2019-09-29 09:29:16 -04:00
parent 8b67c8f8c6
commit 655085204e
4 changed files with 12 additions and 5 deletions

View File

@@ -9553,7 +9553,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;