:set shortmess+=F
:au BufUnload * echo "BufUnload " . expand("%")
:e test
:tab drop test
"BufUnload test" is printed but it should not be printed.
9.0
Mac, WSL
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
This seems to be a regression from patch 9.1.0046.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Note: tab drop does not trigger BufUnload on 9.0. But, e does trigger BufUnload on 9.0.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Also, this still happens for :drop if test is an empty file, but doesn't happen if test is non-empty.
That is because of 9781788
I am not sure what the correct behaviour should be. If we comment out part of the patch that triggers ex_rewind, it won't trigger the BufUnload anymore, but the file would also not be loaded. So I think it should go through do_ecmd() (which will then trigger the BufUnload again).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()