mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 07:11:24 +12:00
Fixed: Process tree not redrawing properly
This commit is contained in:
parent
c88169fc85
commit
58846af516
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue