File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -803,13 +803,21 @@ def __display_right(self, stat_display):
803
803
for p in self ._right_sidebar ():
804
804
if (hasattr (self .args , 'enable_' + p ) or hasattr (self .args , 'disable_' + p )) and p in stat_display :
805
805
self .new_line ()
806
- if p == 'processlist' :
806
+ if p in ['processlist' , 'programlist' ]:
807
+ p_index = self ._right_sidebar ().index (p ) + 1
807
808
self .display_plugin (
808
- stat_display ['processlist' ],
809
+ stat_display [p ],
809
810
display_optional = (self .term_window .getmaxyx ()[1 ] > 102 ),
810
811
display_additional = (not MACOS ),
811
812
max_y = (
812
- self .term_window .getmaxyx ()[0 ] - self .get_stats_display_height (stat_display ['alert' ]) - 2
813
+ self .term_window .getmaxyx ()[0 ]
814
+ - sum (
815
+ [
816
+ self .get_stats_display_height (stat_display [i ])
817
+ for i in self ._right_sidebar ()[p_index :]
818
+ ]
819
+ )
820
+ - 2
813
821
),
814
822
)
815
823
else :
You can’t perform that action at this time.
0 commit comments