Closed Olical closed 1 month ago
Interestingly, bdelete
doesn't cause this issue. quit
is fine too, it's only quit!
that seems to break the buffer. The :help
on this call is:
:q[uit]! Quit without writing, also when the current buffer has
changes. The buffer is unloaded, also when it has
'hidden' set.
If this is the last window and there is a modified
hidden buffer, the current buffer is abandoned and the
first changed hidden buffer becomes the current
buffer.
Use ":qall!" to exit always.
It mentions that it unloads a buffer even if it has hidden
set. So maybe it's "unloading" and not deleting the buffer?
Yep! :bunload
reproduces the issue too! So we just have to check if the buffer is loaded or not. If it's not then we need to re-initialise.
thanks for taking care of this!
As reported by Max Savchenko on Discord:
I suspect the
!
suffix is killing the buffer in some way, or maybe clearing it's buffer local settings without deleting the buffer. It's some sort of half dead state so Conjure isn't re-creating the buffer with all of the right options set in this case like it normally would.