mirror of https://github.com/xzeldon/htop.git
Merge pull request #207 from eworm-de/settings
write header length (number of columns) back to configuration
This commit is contained in:
commit
b1aea7f748
1
Header.c
1
Header.c
|
@ -85,6 +85,7 @@ void Header_writeBackToSettings(const Header* this) {
|
||||||
|
|
||||||
colSettings->names = calloc(len+1, sizeof(char*));
|
colSettings->names = calloc(len+1, sizeof(char*));
|
||||||
colSettings->modes = calloc(len, sizeof(int));
|
colSettings->modes = calloc(len, sizeof(int));
|
||||||
|
colSettings->len = len;
|
||||||
|
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
Meter* meter = (Meter*) Vector_get(vec, i);
|
Meter* meter = (Meter*) Vector_get(vec, i);
|
||||||
|
|
Loading…
Reference in New Issue