summaryrefslogtreecommitdiff
path: root/plugins/zsh-navigation-tools/n-panelize
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/zsh-navigation-tools/n-panelize')
-rw-r--r--plugins/zsh-navigation-tools/n-panelize11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/zsh-navigation-tools/n-panelize b/plugins/zsh-navigation-tools/n-panelize
index a70565c79..01d01cb9e 100644
--- a/plugins/zsh-navigation-tools/n-panelize
+++ b/plugins/zsh-navigation-tools/n-panelize
@@ -32,7 +32,11 @@ if [ -t 0 ]; then
return 1
fi
- list=( `"$@"` )
+ # This loop makes script faster on some Zsh's (e.g. 5.0.8)
+ repeat 1; do
+ list=( `"$@"` )
+ done
+
# TODO: $? doesn't reach user
[ "$?" -eq 127 ] && return $?
else
@@ -42,7 +46,10 @@ else
return 1
fi
- list=( "${(@f)"$(<&0)"}" )
+ # This loop makes script faster on some Zsh's (e.g. 5.0.8)
+ repeat 1; do
+ list=( "${(@f)"$(<&0)"}" )
+ done
if [[ ! -c /dev/tty ]]; then
exec <&2