Fix vertical fore-back coloring when span is empty
e.g. back-to-back color codes, or color code at end of line
This commit is contained in:
@@ -230,6 +230,11 @@ impl NormalizedAsciiArt {
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
if span.is_empty() {
|
||||
continue;
|
||||
}
|
||||
|
||||
let txt = &line[span];
|
||||
|
||||
if fg.contains(&neofetch_color_idx) {
|
||||
|
||||
Reference in New Issue
Block a user