Mercurial > vim-lawrencium
changeset 90:777063310a8d
Check before cleaning any empty buffers left after new tab commands.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Jun 2014 15:36:33 -0700 |
parents | 7fcb71064e85 |
children | e21a1819ab27 |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugin/lawrencium.vim Sun Jun 01 15:33:22 2014 -0700 +++ b/plugin/lawrencium.vim Wed Jun 04 15:36:33 2014 -0700 @@ -1200,7 +1200,7 @@ " Make it part of the diff group. call s:HgDiff_DiffThis() endif - if l:cleanupbufnr >= 0 + if l:cleanupbufnr >= 0 && bufexists(l:cleanupbufnr) execute 'bdelete ' . l:cleanupbufnr endif