mirror of
https://github.com/powerline/powerline.git
synced 2025-07-26 23:35:04 +02:00
Fix warncreateglobal warning from zsh_expand
This commit is contained in:
parent
2d877c9240
commit
343b217cae
@ -111,7 +111,7 @@ if hasattr(zsh, 'expand') and zsh.expand('${:-}') == '':
|
||||
zsh_expand = zsh.expand
|
||||
else:
|
||||
def zsh_expand(s):
|
||||
zsh.eval('_POWERLINE_REPLY="' + s + '"')
|
||||
zsh.eval('local _POWERLINE_REPLY="' + s + '"')
|
||||
ret = zsh.getvalue('_POWERLINE_REPLY')
|
||||
zsh.setvalue('_POWERLINE_REPLY', None)
|
||||
return ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user