Merge pull request #784 from ariasuni/fix-icons-not-showing-right-in-konsole

Use same styling for spaces between icon and file name
This commit is contained in:
Benjamin Sago 2021-03-30 00:18:39 +01:00 committed by GitHub
commit 3c69169993
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,9 +132,9 @@ impl<'a, 'dir, C: Colours> FileName<'a, 'dir, C> {
bits.push(style.paint(file_icon));
match spaces_count {
1 => bits.push(Style::default().paint(" ")),
2 => bits.push(Style::default().paint(" ")),
n => bits.push(Style::default().paint(spaces(n))),
1 => bits.push(style.paint(" ")),
2 => bits.push(style.paint(" ")),
n => bits.push(style.paint(spaces(n))),
}
}