Merge pull request #1231 from ZyX-I/fix-1225

Some Vims that have vim.vvars do not accept unicode indexes
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2014-12-09 21:17:46 +03:00
commit c3d4934ccd
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ _vim_exists = vim_get_func('exists', rettype='int')
# It may crash on some old vim versions and I do not remember in which patch
# I fixed this crash.
if hasattr(vim, 'vvars') and vim.vvars['version'] > 703:
if hasattr(vim, 'vvars') and vim.vvars[str('version')] > 703:
_vim_to_python_types = {
getattr(vim, 'Dictionary', None) or type(vim.bindeval('{}')):
lambda value: dict((