guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/08: ui: format 'display-hint' output when no arguments are passed.


From: guix-commits
Subject: 03/08: ui: format 'display-hint' output when no arguments are passed.
Date: Fri, 17 Mar 2023 18:25:20 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 2135f69dc0c0e70caf3fca0688ae831ab6bcaa65
Author: Antero Mejr <antero@mailbox.org>
AuthorDate: Thu Mar 16 16:11:20 2023 +0000

    ui: format 'display-hint' output when no arguments are passed.
    
    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.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 guix/ui.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ other objects that must match the 'format' escapes in 
MESSAGE."
    ;; 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]