mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00:00
Use the full length for the wide footer
This commit is contained in:
parent
28d0b0a21e
commit
b6129ad081
1 changed files with 6 additions and 2 deletions
|
@ -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 a new issue