mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user