menu/editor: Add vertical bars around title

This commit is contained in:
mintsuki 2024-07-20 06:13:36 +02:00
parent f6c8097c78
commit 57f77a8514

View File

@ -244,9 +244,9 @@ refresh:
// FALLTHRU
default: {
size_t title_length = strlen(title);
if (i == (terms[0]->cols / 2) - DIV_ROUNDUP(title_length, 2) - 1) {
print("%s", title);
i += title_length - 1;
if (i == (terms[0]->cols / 2) - DIV_ROUNDUP(title_length, 2) - 1 - 1) {
print("%s", title);
i += (title_length + 2) - 1;
} else {
print(serial ? "-" : "");
}