From 722bde2cbc9b01e142ac10f27bbbfdeee9035a84 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 28 Jul 2023 04:02:27 -0500 Subject: [PATCH] menu: Adjust centering by 2 characters to the left --- common/menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/menu.c b/common/menu.c index 40b97ede..345f117b 100644 --- a/common/menu.c +++ b/common/menu.c @@ -815,7 +815,7 @@ refresh: print_tree(tree_offset, terms[0]->rows - 10, NULL, 0, 0, selected_entry, menu_tree, &selected_menu_entry, &max_tree_len); - size_t tree_prefix_len = terms[0]->cols / 2 - DIV_ROUNDUP(max_tree_len, 2); + size_t tree_prefix_len = (terms[0]->cols / 2 - DIV_ROUNDUP(max_tree_len, 2)) - 2; if (!serial) tree_prefix_len += strlen("│") - 1; char *tree_prefix = ext_mem_alloc(tree_prefix_len); memset(tree_prefix, ' ', tree_prefix_len);