mirror of
https://github.com/aristocratos/btop.git
synced 2025-12-23 22:29:08 -05:00
Fix redraw in proc list when changing sort order (#1309)
In tree-view mode and with the proc list is collapsed, changing the sort order will not clear the list properly because of a wrong offset.
This commit is contained in:
committed by
GitHub
parent
dd86355170
commit
2fc829b00a
@@ -1968,7 +1968,7 @@ namespace Proc {
|
||||
}
|
||||
|
||||
out += Fx::reset;
|
||||
while (lc++ < height - 5) out += Mv::to(y+lc+1, x+1) + string(width - 2, ' ');
|
||||
while (lc++ < height - 3) out += Mv::to(y+lc+1, x+1) + string(width - 2, ' ');
|
||||
|
||||
//? Draw scrollbar if needed
|
||||
if (numpids > select_max) {
|
||||
|
||||
Reference in New Issue
Block a user