Delete fileinfo also on BufUnload and BufWipeout

This commit is contained in:
Jan Larres 2012-02-23 00:00:24 +13:00
parent 4bf1d7024d
commit a69cb8ce0b

View File

@ -965,7 +965,7 @@ function! s:CreateAutocommands()
\ endif
autocmd BufEnter,CursorHold,FileType * call
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'))
autocmd BufDelete * call
autocmd BufDelete,BufUnload,BufWipeout * call
\ s:CleanupFileinfo(fnamemodify(expand('<afile>'), ':p'))
augroup END