From 58846af5169582692f95ee3244161b1f7a6caf9d Mon Sep 17 00:00:00 2001 From: aristocratos Date: Tue, 15 Feb 2022 06:58:22 +0100 Subject: [PATCH] Fixed: Process tree not redrawing properly --- src/btop_draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/btop_draw.cpp b/src/btop_draw.cpp index 9992808..bf43cc5 100644 --- a/src/btop_draw.cpp +++ b/src/btop_draw.cpp @@ -1412,10 +1412,10 @@ namespace Proc { width_left -= (ulen(p.name) + 1); } if (width_left > 7 and p.short_cmd != p.name) { - out += g_color + '(' + uresize(p.short_cmd, width_left - 3, true) + ')'; + out += g_color + '(' + uresize(p.short_cmd, width_left - 3, true) + ") "; width_left -= (ulen(p.short_cmd, true) + 3); } - out += Mv::to(y+2+lc, x+2+tree_size); + out += string(max(0, width_left), ' ') + Mv::to(y+2+lc, x+2+tree_size); } //? Common end of line string cpu_str = to_string(p.cpu_p);