Add fix for old vims

Old vim versions did not support both unicode() and str() in python2 bindings in 
a number of places.

Fixes #829
This commit is contained in:
ZyX 2014-03-13 21:14:20 +04:00
parent 820b5ec4ef
commit b4644ffd29
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ else:
if hasattr(vim, 'options'):
def vim_getbufoption(info, option):
return info['buffer'].options[option]
return info['buffer'].options[str(option)]
else:
def vim_getbufoption(info, option): # NOQA
return getbufvar(info['bufnr'], '&' + option)