aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-10-18 12:01:12 +0100
committerThomas Adam <thomas@xteddy.org>2021-10-18 12:01:12 +0100
commit9e986d6a964aeeef31567f793f825850ac0c0472 (patch)
treec03ed4dfc913e8d40947ae82dfc3f9282089f62f /menu.c
parentc57df2bb73846c5891603fa6902a216965f66db3 (diff)
parent51ff77d47be80d59b1e30e55bd75788fcc22e4bf (diff)
downloadrtmux-9e986d6a964aeeef31567f793f825850ac0c0472.tar.gz
rtmux-9e986d6a964aeeef31567f793f825850ac0c0472.tar.bz2
rtmux-9e986d6a964aeeef31567f793f825850ac0c0472.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 4c6403a0..a1c81816 100644
--- a/menu.c
+++ b/menu.c
@@ -100,6 +100,8 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
new_item->key = item->key;
width = format_width(new_item->name);
+ if (*new_item->name == '-')
+ width--;
if (width > menu->width)
menu->width = width;
}