nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 9c202198a3c3c33533674a2d6a20ff44e58f7573
parent c8dc67717ba530b29d42ff79c2ff0feecca54581
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  1 Oct 2019 15:03:40 +0200

tweaks: simplify a calculation, as done elsewhere

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2291,7 +2291,7 @@ void bottombars(int menu) number = shown_entries_for(menu); /* Compute the width of each keyname-plus-explanation pair. */ - itemwidth = COLS / ((number / 2) + (number % 2)); + itemwidth = COLS / ((number + 1) / 2); /* If there is no room, don't print anything. */ if (itemwidth == 0)