mirror of https://github.com/xzeldon/htop.git
Include merge status with column title when enabled
This commit is contained in:
parent
be60419630
commit
e33d4d9460
|
@ -77,10 +77,11 @@ void ProcessList_printHeader(ProcessList* this, RichString* header) {
|
||||||
field = "- ";
|
field = "- ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this->settings->treeView && this->settings->sortKey == fields[i]) {
|
int color = (!this->settings->treeView && this->settings->sortKey == fields[i]) ?
|
||||||
RichString_append(header, CRT_colors[PANEL_SELECTION_FOCUS], field);
|
CRT_colors[PANEL_SELECTION_FOCUS] : CRT_colors[PANEL_HEADER_FOCUS];
|
||||||
} else {
|
RichString_append(header, color, field);
|
||||||
RichString_append(header, CRT_colors[PANEL_HEADER_FOCUS], field);
|
if (COMM == fields[i] && this->settings->showMergedCommand) {
|
||||||
|
RichString_append(header, color, "(merged)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue