gokcehan / lf

Terminal file manager
MIT License
7.79k stars 331 forks source link

Directories with a background color don't render correctly #1848

Closed neeshy closed 1 week ago

neeshy commented 1 week ago

r32:

2024-11-12-16:46:54 377282762

r33:

2024-11-12-16:47:05 670816048

This regression originates in b819d90be20eab1ba2f62f8f4e4976288d872f8f

joelim-work commented 1 week ago

Thanks for reporting the issue.

That commit changes the UI code so that different components (tag, icon and filename) are rendered separately. Note that the space before the filename is not merely 'padding' - it is actually used to store the tag if there is one. If there isn't a tag then I think it's fine to use the corresponding background color instead, as opposed to not drawing anything at all.

Can you try #1849 to see if it fixes the issue for you?

neeshy commented 1 week ago

Yep, #1849 fixes it.