Fix non-bindeval fallback
This commit is contained in:
parent
658232a1aa
commit
9060e2b4cf
|
@ -154,7 +154,9 @@ class VimPowerline(Powerline):
|
||||||
# (previously it required as well vim and json)
|
# (previously it required as well vim and json)
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def pyeval():
|
def pyeval():
|
||||||
vim.command('return ' + json.dumps(eval(vim.eval('a:e'))))
|
import __main__
|
||||||
|
vim.command('return ' + json.dumps(eval(vim.eval('a:e'),
|
||||||
|
__main__.__dict__)))
|
||||||
|
|
||||||
|
|
||||||
def setup(pyeval=None, pycmd=None):
|
def setup(pyeval=None, pycmd=None):
|
||||||
|
|
Loading…
Reference in New Issue