[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)
- branch master updated (933051281f -> 99114eb638), guix-commits, 2023/03/17
- 01/08: services: console-font: 'stop' method always returns #f., guix-commits, 2023/03/17
- 04/08: gnu: gnulib: Restore shebangs., guix-commits, 2023/03/17
- 02/08: pack: "fakechroot" engine passes the recursive RUNPATH to ld.so., guix-commits, 2023/03/17
- 08/08: gnu: bemenu: Update to 0.6.14., guix-commits, 2023/03/17
- 06/08: home: services: Add home-xmodmap-service-type., guix-commits, 2023/03/17
- 03/08: ui: format 'display-hint' output when no arguments are passed.,
guix-commits <=
- 05/08: gnu: guile-gnutls: Do not expect gnulib shebangs to work., guix-commits, 2023/03/17
- 07/08: services: dict: Deprecate 'dicod-service' procedure., guix-commits, 2023/03/17