Mercurial > vim-lawrencium
changeset 93:bc5a8dff3fa0
Another attempt to fix weird issues with cleaning up diff buffers.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 16 Jul 2014 22:08:31 -0700 |
parents | e856f8dc22a8 |
children | 27d5d85ab918 |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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