mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
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:
parent
820b5ec4ef
commit
b4644ffd29
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user