From 4037e86d661bd509e3d648220f839c9d407911be Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sat, 16 Nov 2019 01:14:10 +0200 Subject: Align child tasks with start of cmd_line --- src/ui/components/processes.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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('─'); -- cgit v1.2.3