Include merge status with column title when enabled

This commit is contained in:
Narendran Gopalakrishnan 2020-11-09 18:38:51 +01:00 committed by BenBE
parent be60419630
commit e33d4d9460
1 changed files with 5 additions and 4 deletions

View File

@ -77,10 +77,11 @@ void ProcessList_printHeader(ProcessList* this, RichString* header) {
field = "- ";
}
if (!this->settings->treeView && this->settings->sortKey == fields[i]) {
RichString_append(header, CRT_colors[PANEL_SELECTION_FOCUS], field);
} else {
RichString_append(header, CRT_colors[PANEL_HEADER_FOCUS], field);
int color = (!this->settings->treeView && this->settings->sortKey == fields[i]) ?
CRT_colors[PANEL_SELECTION_FOCUS] : CRT_colors[PANEL_HEADER_FOCUS];
RichString_append(header, color, field);
if (COMM == fields[i] && this->settings->showMergedCommand) {
RichString_append(header, color, "(merged)");
}
}
}