mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-30 07:01:35 +02:00
Fixed: Process tree not redrawing properly
This commit is contained in:
parent
c88169fc85
commit
58846af516
@ -1412,10 +1412,10 @@ namespace Proc {
|
|||||||
width_left -= (ulen(p.name) + 1);
|
width_left -= (ulen(p.name) + 1);
|
||||||
}
|
}
|
||||||
if (width_left > 7 and p.short_cmd != p.name) {
|
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);
|
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
|
//? Common end of line
|
||||||
string cpu_str = to_string(p.cpu_p);
|
string cpu_str = to_string(p.cpu_p);
|
||||||
|
Loading…
Reference in New Issue
Block a user