mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 15:54:30 +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
|
zsh_expand = zsh.expand
|
||||||
else:
|
else:
|
||||||
def zsh_expand(s):
|
def zsh_expand(s):
|
||||||
zsh.eval('_POWERLINE_REPLY="' + s + '"')
|
zsh.eval('local _POWERLINE_REPLY="' + s + '"')
|
||||||
ret = zsh.getvalue('_POWERLINE_REPLY')
|
ret = zsh.getvalue('_POWERLINE_REPLY')
|
||||||
zsh.setvalue('_POWERLINE_REPLY', None)
|
zsh.setvalue('_POWERLINE_REPLY', None)
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user