[RFC] fix #1027: :wundo segfault in new, non-empty buffer

I'll move these attributes changes to a separate PR.