From aec537f519096b7eae221d4567afc28fdbfa4ce2 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Thu, 15 Jul 2021 12:51:46 +0200 Subject: [PATCH] menu: Fix title alignment --- stage23/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {