On Fr, 07 Jul 2017, Bram Moolenaar wrote:
> Did you check that something nasty in the autocommand, such as closing
> the buffer, doesn't cause trouble?
This version does, by setting curbuf_locked. That makes at least my
au OptionSet diff :close
not fail (and still enters diff mode). (previously it would segfault.)
Traue den Menschen doch etwas mehr, sie sind wohl manchmal besser als
-- S. Gontard