about summary refs log tree commit diff
path: root/src/libnmc-base
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-10-04 11:46:00 +0200
committerMichael Biebl <biebl@debian.org>2023-10-04 11:46:00 +0200
commit2f3cc04ff8a04278f01e4636f48a98f8f2e96b21 (patch)
tree4fc86e4ed1429cc563941a06b05b3a03b991b368 /src/libnmc-base
parent491a3eba00b23412605366b5e0c0b1e35923b9c6 (diff)
parentd4d8b2b91f7ba000d97a8b2aab48c85000c11314 (diff)
Update upstream source from tag 'upstream/1.44.2'
Update to upstream version '1.44.2'
with Debian dir 40e7c53062e3f5993a56cbed3a58b49f1c78441a
Diffstat (limited to 'src/libnmc-base')
-rw-r--r--src/libnmc-base/nm-client-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libnmc-base/nm-client-utils.c b/src/libnmc-base/nm-client-utils.c
index 4ce1ac6c..b052a307 100644
--- a/src/libnmc-base/nm-client-utils.c
+++ b/src/libnmc-base/nm-client-utils.c
@@ -712,6 +712,9 @@ nmc_print_qrcode(const char *str)
                 bool bottom = qrcodegen_getModule(qrcode, x, y + 1);
                 if (top) {
                     g_print(bottom ? " " : "\u2584");
+                } else if (y > size) {
+                    /* Print the last line (the bottom QR border) in light gray, no bg color */
+                    g_print("\033[0;37m\u2580");
                 } else {
                     g_print(bottom ? "\u2580" : "\u2588");
                 }