diff options
author | Nathan Scott <nathans@redhat.com> | 2021-09-20 16:29:44 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-09-20 16:29:44 +1000 |
commit | e6596cbd6924db5355e0413e466ab1ece6b023e4 (patch) | |
tree | 744547c620d5a47a2c40f333f8cb5c08c4bc5d4b /Header.c | |
parent | 40c9f899719c88acc06406b192f1a2e7601cc694 (diff) | |
parent | bdb015ffa36ebedadc2bc5266660182e49596f3d (diff) |
Merge branch 'multicolumn' of https://github.com/cgzones/htop into cgzones-multicolumn
Diffstat (limited to 'Header.c')
-rw-r--r-- | Header.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -212,7 +212,10 @@ void Header_draw(const Header* this) { Meter* meter = (Meter*) Vector_get(meters, i); float actualWidth = colWidth; - if (meter->mode == TEXT_METERMODE) { + + /* Let meters in text mode expand to the right on empty neighbors; + except for multi column meters. */ + if (meter->mode == TEXT_METERMODE && !Meter_isMultiColumn(meter)) { for (int j = 1; j < meter->columnWidthCount; j++) { actualWidth += (float)width * HeaderLayout_layouts[this->headerLayout].widths[col + j] / 100.0F; } |