diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-28 20:41:33 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-07 14:46:44 +0100 |
commit | 27db9297b77c7dd1cb48f334fded7f3c21d5730c (patch) | |
tree | 683a021f1ee9f91de2f1801cf10abd94cba7c101 /ProcessList.c | |
parent | 330d4fe22fe13612426a25c30cf29c2166bf4845 (diff) |
Show arrow indicating order of sorted process column
Diffstat (limited to 'ProcessList.c')
-rw-r--r-- | ProcessList.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ProcessList.c b/ProcessList.c index 9709f3c1..ed6459ca 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -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)"); } |