Fix header padding

This commit is contained in:
mo8it 2024-08-29 16:01:41 +02:00
parent fd2bf9f6f6
commit 10eb1a3aee

View file

@ -189,7 +189,7 @@ impl<'a> ListState<'a> {
// Header // Header
let mut writer = MaxLenWriter::new(stdout, self.term_width as usize); let mut writer = MaxLenWriter::new(stdout, self.term_width as usize);
writer.write_ascii(b" Current State Name")?; writer.write_ascii(b" Current State Name")?;
writer.write_ascii(&self.name_col_padding[2..])?; writer.write_ascii(&self.name_col_padding[4..])?;
writer.write_ascii(b"Path")?; writer.write_ascii(b"Path")?;
next_ln(stdout)?; next_ln(stdout)?;