From 267ea05860ef39607094149d412518836f123025 Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 9 Dec 2014 19:18:08 +0300 Subject: [PATCH] Some Vims that have vim.vvars do not accept unicode indexes Fixes #1225 --- powerline/bindings/vim/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/bindings/vim/__init__.py b/powerline/bindings/vim/__init__.py index 6c2e4527..a0188275 100644 --- a/powerline/bindings/vim/__init__.py +++ b/powerline/bindings/vim/__init__.py @@ -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((