mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
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.
This commit is contained in:
1
Action.c
1
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);
|
||||
|
Reference in New Issue
Block a user