From 94b8c2e714e740639f0c345e9df5b6de7cbe966a Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Wed, 26 Aug 2020 22:03:04 +0200 Subject: fix width of `AffinitPanel` The panel size of 15 includes the gap to the next panel, thus use 14 as the minimum size and let the caller of `AffinityPanel_new` handle the gap. --- Action.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Action.c') diff --git a/Action.c b/Action.c index 363c2b98..d9cc5abf 100644 --- a/Action.c +++ b/Action.c @@ -320,6 +320,7 @@ static Htop_Reaction actionSetAffinity(State* st) { if (!affinity1) return HTOP_OK; int width; Panel* affinityPanel = AffinityPanel_new(st->pl, affinity1, &width); + width += 1; /* we add a gap between the panels */ Affinity_delete(affinity1); void* set = Action_pickFromVector(st, affinityPanel, width, true); -- cgit v1.2.3