artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbc442f
)
Fix menu width containing disabled items, from Alexis Hildebrandt in
author
nicm
<nicm@openbsd.org>
Mon, 18 Oct 2021 09:48:35 +0000
(09:48 +0000)
committer
nicm
<nicm@openbsd.org>
Mon, 18 Oct 2021 09:48:35 +0000
(09:48 +0000)
GitHub issue 2935.
usr.bin/tmux/menu.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/menu.c
b/usr.bin/tmux/menu.c
index
5eb9053
..
345964e
100644
(file)
--- a/
usr.bin/tmux/menu.c
+++ b/
usr.bin/tmux/menu.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: menu.c,v 1.3
8 2021/10/11 13:27:50
nicm Exp $ */
+/* $OpenBSD: menu.c,v 1.3
9 2021/10/18 09:48:35
nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-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;
}