patch 8.0.1204: a QuitPre autocommand may get the wrong file name v8.0.1204
authorBram Moolenaar <Bram@vim.org>
Thu, 19 Oct 2017 10:37:42 +0000 (12:37 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 19 Oct 2017 10:37:42 +0000 (12:37 +0200)
commit87ffb5c1a3aa506a1be07af4e794b3753f839dc3
tree397eab50b1669ae9111a6f6fcdac4201abbb9503
parent6daeef1933be68055aabe1d55f8467d46a707753
patch 8.0.1204: a QuitPre autocommand may get the wrong file name

Problem:    A QuitPre autocommand may get the wrong file name.
Solution:   Pass the buffer being closed to apply_autocmds(). (Rich Howe)
src/ex_docmd.c
src/testdir/test_autocmd.vim
src/version.c