diff options
author | Bert Wesarg <bert.wesarg@googlemail.com> | 2020-08-26 22:03:04 +0200 |
---|---|---|
committer | Bert Wesarg <bert.wesarg@googlemail.com> | 2020-08-26 22:03:11 +0200 |
commit | 94b8c2e714e740639f0c345e9df5b6de7cbe966a (patch) | |
tree | 3ee82b2af2ab3d38b6e4b07f3994516aac72f742 /Action.c | |
parent | df7e4fcdc0f36d2d1fc3941c0e68a72620c68a0f (diff) |
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.
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |