summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-16 01:14:10 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-11-16 01:21:12 +0200
commit4037e86d661bd509e3d648220f839c9d407911be (patch)
treea8ea961d8513ba5df81c8bd1b3aa8da274018f34
parent686b330093fdb5311fbd0ee30dd901edbdb9874a (diff)
Align child tasks with start of cmd_line
-rw-r--r--src/ui/components/processes.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/components/processes.rs b/src/ui/components/processes.rs
index 209f0cd..2be0d51 100644
--- a/src/ui/components/processes.rs
+++ b/src/ui/components/processes.rs
@@ -468,6 +468,7 @@ impl ProcessList {
for i in 0..*ind {
if branches.len() > i && branches[i] {
+ s.push(' ');
s.push('│');
} else {
s.push(' ');
@@ -479,19 +480,25 @@ impl ProcessList {
if *ind > 0 || (has_sibling || is_first) {
if p.is_thread {
if has_sibling && is_first {
+ s.push(' ');
s.push('╞');
} else if has_sibling {
+ s.push(' ');
s.push('╞');
} else {
+ s.push(' ');
s.push('╘');
}
s.push('═');
} else {
if has_sibling && is_first {
+ s.push(' ');
s.push('├');
} else if has_sibling {
+ s.push(' ');
s.push('├');
} else {
+ s.push(' ');
s.push('└');
}
s.push('─');