Merge pull request #1147 from ZyX-I/fix-1146

Use different fallback for old Vims
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2014-11-11 01:15:28 +03:00
commit 6b6245c5b3
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ if hasattr(vim, 'Function'):
else:
def vim_func_exists(f):
try:
return bool(int(vim.eval('type(function("{0}")) == 2'.format(f))))
return bool(int(vim.eval('exists("*{0}")'.format(f))))
except vim.error:
return False