From b5590bdc906af66488440247e5cd90dcfd6f5af9 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Fri, 3 Mar 2017 18:48:42 -0500 Subject: [PATCH] Revert "resolve race condition between git completion and coalesce function" This reverts commit f7b981402d7e3fd04ab44fafe052f258cec8b950. --- modules/helper/init.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/helper/init.zsh b/modules/helper/init.zsh index 3883f7d728..9d792186d4 100644 --- a/modules/helper/init.zsh +++ b/modules/helper/init.zsh @@ -23,7 +23,9 @@ function is-true { # Prints the first non-empty string in the arguments array. function coalesce { - print "${${(s: :)@}[1]}" + for arg in $argv; do + print "$arg" + return 0 + done + return 1 } - -