resolve race condition between git completion and coalesce function
This commit is contained in:
parent
4f19700919
commit
f7b981402d
1 changed files with 3 additions and 5 deletions
|
@ -23,9 +23,7 @@ function is-true {
|
|||
|
||||
# Prints the first non-empty string in the arguments array.
|
||||
function coalesce {
|
||||
for arg in $argv; do
|
||||
print "$arg"
|
||||
return 0
|
||||
done
|
||||
return 1
|
||||
print "${${(s: :)@}[1]}"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue