sharkdp / lscolors

LsColors: change has_color_for to public visibility & rename to has_explicit_syle_for
coreutils (https://github.com/uutils/coreutils) uses style_for_indicator to check if a style for Indicator::Capabilities is available. However, style_for_indicator uses fallbacks and can therefore return a style even if no direct style for Indicator::Capabilities is set. Directly being able to use has_color_for allows to fix that.
Beat Küng Beat Küng committed on Sep 11, 2025, 05:44 PM
Showing 1 changed files +16 additions -16 deletions
M src/lib.rs +16 -16
Browse files at this commit →