1
0
Fork 0

resolve race condition between git completion and coalesce function

pull/1241/head
Greg Sieranski 8 years ago
parent 4f19700919
commit f7b981402d

@ -23,9 +23,7 @@ function is-true {
# Prints the first non-empty string in the arguments array. # Prints the first non-empty string in the arguments array.
function coalesce { function coalesce {
for arg in $argv; do print "${${(s: :)@}[1]}"
print "$arg"
return 0
done
return 1
} }

Loading…
Cancel
Save