From 343b217cae7a573096f96d186f9e0199914758ab Mon Sep 17 00:00:00 2001 From: Foo Date: Mon, 1 May 2017 02:15:50 +0300 Subject: [PATCH] Fix warncreateglobal warning from zsh_expand --- powerline/bindings/zsh/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/bindings/zsh/__init__.py b/powerline/bindings/zsh/__init__.py index 1f93d272..1037bba2 100644 --- a/powerline/bindings/zsh/__init__.py +++ b/powerline/bindings/zsh/__init__.py @@ -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