View/session files for buftype=acwrite buffers don't store fold information
13 views
Skip to first unread message
James McCoy
unread,
May 28, 2022, 12:49:11 PM5/28/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
put_view() only stores the fold information if "bt_normal() ||
bt_help()" is true. Since bt_normal() excludes any buffers where
'buftype' is set, this prevents fold info being stored for
buftype=acwrite.
I think storing the folds would make sense for this type of buffer.
This also makes me wonder whether the other uses of bt_normal() should
be reviewed to see if more of them should also apply to buftype=acwrite.