Include merge status with column title when enabled
diff --git a/ProcessList.c b/ProcessList.c
index bf67dab..6339546 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -77,10 +77,11 @@
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)");
}
}
}