mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-11-08 09:09:17 +01:00
Use the full length for the wide footer
This commit is contained in:
parent
28d0b0a21e
commit
b6129ad081
@ -93,7 +93,7 @@ impl<'a> ListState<'a> {
|
||||
stdout.write_all(b"Path")?;
|
||||
next_ln::<true>(stdout)?;
|
||||
|
||||
let narrow = self.term_width < 96;
|
||||
let narrow = self.term_width < 95;
|
||||
let show_footer = self.term_height > 6;
|
||||
let max_n_rows_to_display =
|
||||
(self.term_height - 1 - u16::from(show_footer) * (4 + u16::from(narrow))) as usize;
|
||||
@ -203,7 +203,11 @@ impl<'a> ListState<'a> {
|
||||
Filter::None => stdout.write_all(b"<d>one/<p>ending")?,
|
||||
}
|
||||
stdout.write_all(" │ <q>uit list".as_bytes())?;
|
||||
if narrow {
|
||||
next_ln::<true>(stdout)?;
|
||||
} else {
|
||||
next_ln::<false>(stdout)?;
|
||||
}
|
||||
} else {
|
||||
stdout.queue(SetForegroundColor(Color::Magenta))?;
|
||||
stdout.write_all(self.message.as_bytes())?;
|
||||
|
Loading…
Reference in New Issue
Block a user