:: commit 923412b90d7187426c86daad5a0bb5bc1dd922f8

mintsuki <mintsuki@protonmail.com> — 2024-07-20 04:30

parents: 57f77a8514

menu/editor: Fix entry title for serial

diff --git a/common/menu.c b/common/menu.c
index eed3b653..8a5107c0 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -245,7 +245,7 @@ refresh:
             default: {
                 size_t title_length = strlen(title);
                 if (i == (terms[0]->cols / 2) - DIV_ROUNDUP(title_length, 2) - 1 - 1) {
-                    print("┤%s├", title);
+                    print(serial ? "|%s|" : "┤%s├", title);
                     i += (title_length + 2) - 1;
                 } else {
                     print(serial ? "-" : "─");
tab: 248 wrap: offon