Use bufloaded() instead of bufname() as a sanity check.

This commit is contained in:
Steve Losh 2010-10-29 09:47:46 -04:00
parent 50c2ef56d3
commit a4798311dc

View File

@ -397,8 +397,7 @@ def _check_sanity():
'''
b = int(vim.eval('g:gundo_target_n'))
n = vim.eval('bufname(%d)' % b)
if not n:
if not vim.eval('bufloaded(%d)' % b):
vim.command('echo "%s"' % (MISSING_BUFFER % b))
return False