top: enable alternate '+' placement with collapsed pid
Currently, except for tasks that have no parents, when a process' children are collapsed the '+' indicator is shown in the first position within that COMMAND field. This commit simply provides for indenting the '+' char so it displays next to that program name/command line. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@ -4840,7 +4840,11 @@ static inline const char *forest_display (const WIN_t *q, const proc_t *p) {
|
||||
if (q == Curwin) // note: the following is NOT indented
|
||||
#endif
|
||||
if (p->pad_2 == 'x') {
|
||||
#ifdef TREE_VALTMRK
|
||||
snprintf(buf, sizeof(buf), "%*s%s", (4 * p->pad_3), "`+ ", which);
|
||||
#else
|
||||
snprintf(buf, sizeof(buf), "+%*s%s", ((4 * p->pad_3) - 1), "`- ", which);
|
||||
#endif
|
||||
return buf;
|
||||
}
|
||||
if (p->pad_3 > 100) snprintf(buf, sizeof(buf), "%400s%s", " + ", which);
|
||||
|
Reference in New Issue
Block a user