:: commit aec537f519096b7eae221d4567afc28fdbfa4ce2

mintsuki <mintsuki@protonmail.com> — 2021-07-15 10:51

parents: 1aa5ae13fc

menu: Fix title alignment

diff --git a/stage23/menu.c b/stage23/menu.c
index c3d67c21..6c0fd741 100644
--- a/stage23/menu.c
+++ b/stage23/menu.c
@@ -197,7 +197,7 @@ refresh:
                 // FALLTHRU
             default: {
                 int title_length = strlen(title);
-                if (i == (term_cols / 2) - DIV_ROUNDUP(title_length, 2)) {
+                if (i == (term_cols / 2) - DIV_ROUNDUP(title_length, 2) - 1) {
                     print("%s", title);
                     i += title_length - 1;
                 } else {
tab: 248 wrap: offon