Add a single space after the spinner by default.

To remove the white space use a format like --format="@\r"
This commit is contained in:
Jorge Bucaran 2016-02-03 08:13:43 +09:00
parent 1a2881207d
commit 1c4e8ffd83
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -123,13 +123,13 @@ function wait -d "Run commands and display a spinner"
end
if test -z (jobs)
printf "$format" | tr @ "\0" > /dev/stderr
# printf "$format" | tr @ "\0" > /dev/stderr
break
end
end
if test -s $tmp
if set -q log[1]
if test ! -z "$log"
nl -n ln -- $tmp > $log
end