From 10300756ccc13330680c0d2da1f263c1efee26c4 Mon Sep 17 00:00:00 2001 From: ZyX Date: Wed, 7 Jan 2015 05:14:41 +0300 Subject: [PATCH] Also do not allow empty paths in zpython bindings --- powerline/bindings/zsh/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/powerline/bindings/zsh/__init__.py b/powerline/bindings/zsh/__init__.py index b4f19f2c..3eab4d79 100644 --- a/powerline/bindings/zsh/__init__.py +++ b/powerline/bindings/zsh/__init__.py @@ -57,7 +57,11 @@ class Args(object): return None else: if isinstance(ret, (unicode, str, bytes)): - return ret.split((b':' if isinstance(ret, bytes) else ':')) + return [ + path + for path in ret.split((b':' if isinstance(ret, bytes) else ':')) + if path + ] else: return ret