Mercurial > vim-lawrencium
comparison plugin/lawrencium.vim @ 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 |
comparison
equal
deleted
inserted
replaced
92:e856f8dc22a8 | 93:bc5a8dff3fa0 |
---|---|
1216 endif | 1216 endif |
1217 execute 'edit ' . fnameescape(l:rev_path) | 1217 execute 'edit ' . fnameescape(l:rev_path) |
1218 " Make it part of the diff group. | 1218 " Make it part of the diff group. |
1219 call s:HgDiff_DiffThis() | 1219 call s:HgDiff_DiffThis() |
1220 endif | 1220 endif |
1221 if l:cleanupbufnr >= 0 && bufexists(l:cleanupbufnr) | 1221 if l:cleanupbufnr >= 0 && bufloaded(l:cleanupbufnr) |
1222 execute 'bdelete ' . l:cleanupbufnr | 1222 execute 'bdelete ' . l:cleanupbufnr |
1223 endif | 1223 endif |
1224 | 1224 |
1225 " Get the second file and open it too. | 1225 " Get the second file and open it too. |
1226 let l:diffsplit = 'diffsplit' | 1226 let l:diffsplit = 'diffsplit' |