Show arrow indicating order of sorted process column

This commit is contained in:
Christian Göttsche
2020-12-28 20:41:33 +01:00
committed by BenBE
parent 330d4fe22f
commit 27db9297b7
3 changed files with 13 additions and 0 deletions

View File

@ -112,6 +112,13 @@ void ProcessList_printHeader(ProcessList* this, RichString* header) {
}
RichString_appendWide(header, color, alignedProcessFieldTitle(fields[i]));
if (key == fields[i] && RichString_getCharVal(*header, RichString_size(header) - 1) == ' ') {
header->chlen--; // rewind to override space
RichString_appendnWide(header,
CRT_colors[PANEL_SELECTION_FOCUS],
CRT_treeStr[Settings_getActiveDirection(this->settings) == 1 ? TREE_STR_DESC : TREE_STR_ASC],
1);
}
if (COMM == fields[i] && settings->showMergedCommand) {
RichString_appendAscii(header, color, "(merged)");
}