# HG changeset patch # User Ludovic Chabant # Date 1405573711 25200 # Node ID bc5a8dff3fa0e82aa406a0a5544b4941e825a584 # Parent e856f8dc22a8bc00c8c4de6a24503879c5d530bc Another attempt to fix weird issues with cleaning up diff buffers. diff -r e856f8dc22a8 -r bc5a8dff3fa0 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Wed Jul 16 22:06:11 2014 -0700 +++ b/plugin/lawrencium.vim Wed Jul 16 22:08:31 2014 -0700 @@ -1218,7 +1218,7 @@ " Make it part of the diff group. call s:HgDiff_DiffThis() endif - if l:cleanupbufnr >= 0 && bufexists(l:cleanupbufnr) + if l:cleanupbufnr >= 0 && bufloaded(l:cleanupbufnr) execute 'bdelete ' . l:cleanupbufnr endif