Message ID | 20230316161120.9294-1-antero@mailbox.org |
---|---|
State | New |
Headers | show |
Series | [bug#62222] ui: format 'display-hint' output when no arguments are passed. | expand |
Hi, Antero Mejr <antero@mailbox.org> skribis: > When display-hint is given format specifiers such as "~%" but no arguments, > it does not format the output, causing the specifiers to be visible in the > displayed text. > > * guix/ui.scm (display-hint): Format output when no arguments are passed. Oops, good catch! Applied, thanks. Ludo’.
diff --git a/guix/ui.scm b/guix/ui.scm index b6c3bd04ba..7540e2194f 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -323,7 +323,7 @@ (define colorize ;; XXX: We should arrange so that the initial indent is wider. (parameterize ((%text-width (max 15 (- (terminal-columns) 5)))) (texi->plain-text (match arguments - (() message) + (() (format #f message)) (_ (apply format #f message (map (match-lambda ((? string? str)