menu: Fix title alignment

This commit is contained in:
mintsuki 2021-07-15 12:51:46 +02:00
parent 1aa5ae13fc
commit aec537f519
1 changed files with 1 additions and 1 deletions

View File

@ -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 {