mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +02:00
Add support for vim.eval('v:version') in test bindings
This commit is contained in:
parent
6a8074a3d3
commit
5bc1f75b70
@ -229,6 +229,8 @@ def command(cmd):
|
|||||||
def eval(expr):
|
def eval(expr):
|
||||||
if expr.startswith('g:'):
|
if expr.startswith('g:'):
|
||||||
return vars[expr[2:]]
|
return vars[expr[2:]]
|
||||||
|
elif expr.startswith('v:'):
|
||||||
|
return vvars[expr[2:]]
|
||||||
elif expr.startswith('&'):
|
elif expr.startswith('&'):
|
||||||
return options[expr[1:]]
|
return options[expr[1:]]
|
||||||
elif expr.startswith('$'):
|
elif expr.startswith('$'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user