Use same styling for spaces between icon and file name

This is only visible when selecting both icon and file name, as most terminal emulators then invert background and foreground color.

It also workaround a Konsole bug: https://bugs.kde.org/show_bug.cgi?id=422776
This commit is contained in:
ariasuni 2021-01-03 22:44:16 +01:00
parent 39c8c67bf6
commit 79bac416f6

View File

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