@@ -43,7 +43,6 @@ pub struct ListState<'a> {
43
43
filter : Filter ,
44
44
term_width : u16 ,
45
45
term_height : u16 ,
46
- separator_line : Vec < u8 > ,
47
46
show_footer : bool ,
48
47
}
49
48
@@ -76,7 +75,6 @@ impl<'a> ListState<'a> {
76
75
// Set by `set_term_size`
77
76
term_width : 0 ,
78
77
term_height : 0 ,
79
- separator_line : Vec :: new ( ) ,
80
78
show_footer : true ,
81
79
} ;
82
80
@@ -95,14 +93,10 @@ impl<'a> ListState<'a> {
95
93
}
96
94
97
95
let header_height = 1 ;
98
- // 2 separators, 1 progress bar, 2 footer message lines.
99
- let footer_height = 5 ;
96
+ // 1 progress bar, 2 footer message lines.
97
+ let footer_height = 3 ;
100
98
self . show_footer = height > header_height + footer_height;
101
99
102
- if self . show_footer {
103
- self . separator_line = "─" . as_bytes ( ) . repeat ( width as usize ) ;
104
- }
105
-
106
100
self . scroll_state . set_max_n_rows_to_display (
107
101
height. saturating_sub ( header_height + u16:: from ( self . show_footer ) * footer_height)
108
102
as usize ,
@@ -202,9 +196,6 @@ impl<'a> ListState<'a> {
202
196
}
203
197
204
198
if self . show_footer {
205
- stdout. write_all ( & self . separator_line ) ?;
206
- next_ln ( stdout) ?;
207
-
208
199
progress_bar (
209
200
& mut MaxLenWriter :: new ( stdout, self . term_width as usize ) ,
210
201
self . app_state . n_done ( ) ,
@@ -213,9 +204,6 @@ impl<'a> ListState<'a> {
213
204
) ?;
214
205
next_ln ( stdout) ?;
215
206
216
- stdout. write_all ( & self . separator_line ) ?;
217
- next_ln ( stdout) ?;
218
-
219
207
let mut writer = MaxLenWriter :: new ( stdout, self . term_width as usize ) ;
220
208
if self . message . is_empty ( ) {
221
209
// Help footer message
0 commit comments