Fix output truncation & indentation on 'doom update'

This commit is contained in:
Henrik Lissner 2020-01-30 18:37:48 -05:00
parent 58c6aea7c5
commit 9a0e029135
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -212,8 +212,9 @@ declaration) or dependency thereof that hasn't already been."
(puthash local-repo t repos-to-rebuild)
(puthash package t packages-to-rebuild)
(unless (string-empty-p output)
(print-group! (print! (info "%s" output))))
(print! (success "(%d/%d) %s updated (%s -> %s)")
(print! (start "\033[K(%d/%d) Updating %s...") i total local-repo)
(print-group! (print! "%s" output)))
(print! (success "\033[K(%d/%d) %s updated (%s -> %s)")
i total local-repo
(doom--abbrev-commit ref)
(doom--abbrev-commit target-ref)))