File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ impl<'a> ListState<'a> {
93
93
stdout. write_all ( b"Path" ) ?;
94
94
next_ln :: < true > ( stdout) ?;
95
95
96
- let narrow = self . term_width < 96 ;
96
+ let narrow = self . term_width < 95 ;
97
97
let show_footer = self . term_height > 6 ;
98
98
let max_n_rows_to_display =
99
99
( self . term_height - 1 - u16:: from ( show_footer) * ( 4 + u16:: from ( narrow) ) ) as usize ;
@@ -203,7 +203,11 @@ impl<'a> ListState<'a> {
203
203
Filter :: None => stdout. write_all ( b"<d>one/<p>ending" ) ?,
204
204
}
205
205
stdout. write_all ( " │ <q>uit list" . as_bytes ( ) ) ?;
206
- next_ln :: < true > ( stdout) ?;
206
+ if narrow {
207
+ next_ln :: < true > ( stdout) ?;
208
+ } else {
209
+ next_ln :: < false > ( stdout) ?;
210
+ }
207
211
} else {
208
212
stdout. queue ( SetForegroundColor ( Color :: Magenta ) ) ?;
209
213
stdout. write_all ( self . message . as_bytes ( ) ) ?;
You can’t perform that action at this time.
0 commit comments