Skip to content

Commit

Permalink
Merge pull request sorin-ionescu#39 from zsh-users/revert_coalesce
Browse files Browse the repository at this point in the history
Revert "resolve race condition between git completion and coalesce function"
  • Loading branch information
paulmelnikow authored Mar 4, 2017
2 parents 95b8125 + b5590bd commit f17847c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/helper/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


0 comments on commit f17847c

Please sign in to comment.